Skip to content

Commit 726d94a

Browse files
author
Ilya Mandel
committed
typo fix
1 parent 0c2e12a commit 726d94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseStar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3911,7 +3911,7 @@ double BaseStar::DrawSNKickMagnitude(const double p_Sigma,
39113911
double rand = p_Rand; // makes it possible to adjust if p_Rand is too low, to avoid getting stuck
39123912
while( utils::Compare(kickMagnitude, 1000.0) > 0 ) { // maximum kick of 1000 km/s, following Disberg & Mandel (2025)
39133913
kickMagnitude = gsl_cdf_lognormal_Pinv(rand, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
3914-
rand = min(rand + p_Rand + 0.0001, 1.0);
3914+
rand = 0.99 * rand;
39153915
}
39163916
}
39173917
else

0 commit comments

Comments
 (0)