Skip to content

Commit

Permalink
Merge pull request #2 from abensonca/mergerTreeImprovement
Browse files Browse the repository at this point in the history
Merger tree improvement
  • Loading branch information
abensonca committed Dec 1, 2022
2 parents be99294 + ccfaed7 commit 8d9d3bf
Show file tree
Hide file tree
Showing 6 changed files with 763 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ double precision function criticalOverdensityBarrierGradient(self,variance,time,
double precision :: alpha , mass
!$GLC attributes unused :: rateCompute

if (variance <= 0.0d0) then
if (variance <= 0.0d0 .or. .not.self%criticalOverdensity_%isMassDependent()) then
! Return zero critical overdensity gradient at this time for infinite mass.
criticalOverdensityBarrierGradient=0.0d0
else
Expand Down
Loading

0 comments on commit 8d9d3bf

Please sign in to comment.