Skip to content

Commit

Permalink
Fixed initialization bug of kdiff in crater_populate
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 22, 2017
1 parent edd787d commit c55a66b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crater/crater_populate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
character(len=MESSAGESIZE) :: message ! message for the progress bar
real(DP) :: ejbmass
logical :: makecrater
real(DP),dimension(user%gridsize,user%gridsize) :: kdiff
real(DP),dimension(user%gridsize,user%gridsize) :: kdiff
TARGET :: surf

! ejecta blanket array
Expand Down Expand Up @@ -123,6 +123,7 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
! Reset coverage map
domain%tallycoverage = 0
domain%subpixelcoverage = 0
kdiff = 0.0_DP
do while (icrater < ntotcrat)
makecrater = .true.
icrater = icrater + 1
Expand Down

0 comments on commit c55a66b

Please sign in to comment.