Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Moved timestamp calculation up
  • Loading branch information
daminton committed Mar 18, 2021
1 parent 71c23d9 commit 6fe3ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crater/crater_populate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
do while (icrater < ntotcrat)
makecrater = .true.
icrater = icrater + 1
crater%timestamp = real(curyear + real(icrater,kind=DP) / real(ntotcrat,kind=DP) * user%interval,kind=SP)
pbarpos = nint(real(icrater) / real(ntotcrat) * PBARRES)
! generate random crater
call crater_generate(user,crater,domain,prod,production_list,vdist,surf)
Expand Down Expand Up @@ -162,7 +163,6 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt

if (makecrater) then
! Stamp the current time onto the crater
crater%timestamp = real(curyear + real(icrater,kind=DP) / real(ntotcrat,kind=DP) * user%interval,kind=SP)
! Find the visible crater parameters
call crater_find_visible(user,crater,domain)

Expand Down

0 comments on commit 6fe3ce8

Please sign in to comment.