You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to debug a problem with py_pluto and was concerned to see that I was getting the error
photon_checks: 10000 of 10000 or 1.000000e+02 per cent of photons failed checks
on further investigation, I discovered only one or two photons were ending up with negative frequencies. This is bad, and I'll see what is going on, but there arent 100% of photons failing.
The reason for the exaggerated error message is a small error on line 1469 of photon_gen.c:
if (nnn == 0)
Debug ("photon_checks: All photons passed checks successfully\n");
else
{
Log ("photon_checks: %d of %d or %e per cent of photons failed checks\n", nn, NPHOT, nn * 100. / NPHOT);
}
nnn is a counter for photons that have errored. So the log should be
Log ("photon_checks: %d of %d or %e per cent of photons failed checks\n", nnn, NPHOT, nnn * 100. / NPHOT);
otherwise it doesn't matter how many error, the report always says 100% have errored.
Fiuxing...
The text was updated successfully, but these errors were encountered:
I've been trying to debug a problem with py_pluto and was concerned to see that I was getting the error
photon_checks: 10000 of 10000 or 1.000000e+02 per cent of photons failed checks
on further investigation, I discovered only one or two photons were ending up with negative frequencies. This is bad, and I'll see what is going on, but there arent 100% of photons failing.
The reason for the exaggerated error message is a small error on line 1469 of photon_gen.c:
if (nnn == 0)
Debug ("photon_checks: All photons passed checks successfully\n");
else
{
Log ("photon_checks: %d of %d or %e per cent of photons failed checks\n", nn, NPHOT, nn * 100. / NPHOT);
}
nnn is a counter for photons that have errored. So the log should be
otherwise it doesn't matter how many error, the report always says 100% have errored.
Fiuxing...
The text was updated successfully, but these errors were encountered: