General Particle Source bug in GenerateIsotropicFlux: Must protect against divide by zero case when posthe = acos(tz) = 0.0 (i.e., any source position where X=0 and Y=0) Fix: ====== replace: posphi = acos(tx/sin(posthe)); with: if (posthe != 0. && posthe != pi) posphi = acos(tx/sin(posthe)); else posphi = 0.0;
Thank you for reporting. The author will fix it quite soon. The correction should go to the closest patch release.
Fix is now committed. It should be included in the coming patch release.