Closed jhmatthews closed 1 year ago
I really find this bizarre, both because we should have noticed this years ago, and because there is a well defined placed fro rezeroing all the appropriate variables. We need to understand what happened.
I think the reporting was changed slightly - a new radiated array was created around a year ago, so someone just forgot to zero it first, or possibly forgot it isn't re-initialised each cycle because this routine (calculate_ionization) has the loop over cycles inside it.
Should be fixed by 1b972e505f9b85a1a279095
I couldn't understand why the AGN luminosity was so high in my models - I thought it was an error with upweighting but it's actually just a bug - here's AGN luminosity plotted against cycle as reported in the diag file / output (really just escaping total luminosity from central SED source):
I think the error is just that the radiated arrays are not zeroed:
I believe we should be adding a loop over photon orig that zeroes the radiated array before we enter the NPHOT loop.