reintroduce bugfix for bessel function distributed random numbers

This commit is contained in:
Axel Kohlmeyer
2020-05-19 09:02:17 -04:00
parent 4ac7a26fe1
commit ffaa77af6b

View File

@ -151,7 +151,7 @@ double RanMars::besselexp(double theta, double alpha, double cp)
{
double first,v1,v2;
if (theta < 0.0 || alpha < 0.0 || alpha < 1.0)
if (theta < 0.0 || alpha < 0.0 || alpha > 1.0)
error->all(FLERR,"Invalid Bessel exponential distribution parameters");
v1 = uniform();