Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Improved the bracketing method for SFD slope
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 23, 2023
1 parent 90009c7 commit 2423034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fraggle/fraggle_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ module subroutine fraggle_util_set_mass_dist(self, param)
y1 = y1 - (i-1)**(-x1/3.0_DP)
end do
if (y0*y1 < 0.0_DP) exit
x1 = x1 * 1.1_DP
x0 = x0 * 1.1_DP
if (y0 > 0.0_DP) x0 = x0 * 1.6_DP
if (y1 < 0.0_DP) x1 = x1 * 1.6_DP
end do

! Find the mass scaling factor with bisection
Expand Down

0 comments on commit 2423034

Please sign in to comment.