Skip to content

Commit

Permalink
hacky fix so ages work properly in multi-interval runs, but multi-int…
Browse files Browse the repository at this point in the history
…erval runs are slower because of this
  • Loading branch information
Austin Blevins committed Aug 31, 2023
1 parent 06dfe51 commit b6c7c5f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/crater/crater_populate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,17 @@ subroutine crater_populate(user,surf,crater,domain,prod,production_list,vdist,nt
end if
if (crater%timestamp < 2330._DP) then
if (oldGa > 0._DP) then
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,agemin,oldGa)
if (user%numintervals .eq. 1) then
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,agemin,oldGa)
else
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,1e-10_DP,oldGa)
end if
else
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,agemin,maxageGa)
if (user%numintervals .eq. 1) then
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,agemin,maxageGa)
else
crater%timestampGa = util_t_from_scale(maxage-crater%timestamp,1e-10_DP,maxageGa)
end if
end if
else
crater%timestampGa = 4.5_DP
Expand Down

0 comments on commit b6c7c5f

Please sign in to comment.