We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3116c40 commit 6f87380Copy full SHA for 6f87380
src/egg-gencat.cpp
@@ -885,7 +885,7 @@ int main(int argc, char* argv[]) {
885
886
// Compute how many deeper levels we need to go with respect to
887
// rstart to reach the local density
888
- opt.levels = ceil(log(rho*dpi*sqr(rstart))/log(opt.eta));
+ opt.levels = ceil(max(0, log(rho*dpi*sqr(rstart)))/log(opt.eta));
889
890
// Compute how many homogeneous starting positions we need
891
// above rstart
0 commit comments