From 9253b0874aa4435bcbfb0a640e6ee330eb5cd883 Mon Sep 17 00:00:00 2001 From: Austin Michael Blevins Date: Thu, 9 Feb 2023 14:47:07 -0500 Subject: [PATCH] reverted depth model back as it broke mixing for some reason --- src/regolith/regolith_depth_model.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regolith/regolith_depth_model.f90 b/src/regolith/regolith_depth_model.f90 index 4ca62181..6b424055 100644 --- a/src/regolith/regolith_depth_model.f90 +++ b/src/regolith/regolith_depth_model.f90 @@ -97,8 +97,8 @@ subroutine regolith_depth_model(user,domain,finterval,nflux,p) f = 0.5_DP * dr * ( fmin + fmax ) psum = psum + f end do - psumfunc = -1.0_DP * PI * psum * t - if (psumfunc > exp(epsilon(psum))) then + psumfunc = exp(-1.0_DP * PI * psum * t) + if (psumfunc > epsilon(psum)) then p(2,i) = 1.0_DP - exp(-1.0_DP * PI * psum * t) else p(2,i) = 1.0_DP