Skip to content

Commit

Permalink
fixed the depth model bug once and for all
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Michael Blevins committed Feb 10, 2023
1 parent 9253b08 commit e795580
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/regolith/regolith_depth_model.f90
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ subroutine regolith_depth_model(user,domain,finterval,nflux,p)
f = 0.5_DP * dr * ( fmin + fmax )
psum = psum + f
end do
psumfunc = exp(-1.0_DP * PI * psum * t)
if (psumfunc > epsilon(psum)) then
!psumfunc = exp(-1.0_DP * PI * psum * t)
psumfunc = -1.0_DP * PI * psum * t
if (psumfunc > log(epsilon(psum))) then
p(2,i) = 1.0_DP - exp(-1.0_DP * PI * psum * t)
else
p(2,i) = 1.0_DP
Expand Down

0 comments on commit e795580

Please sign in to comment.