Closed jacobseiler closed 6 years ago
I don't think this is an issue at all actually. In my plotting scripts all I've done is ensured that I'm only calculating statistics using galaxies that don't have a negative value for GridReionMod
; i.e.,
reionmod = G.GridReionMod[w_gal, current_snap]
mass_reionmod_central = mass_central[reionmod > -1]
reionmod = reionmod[reionmod > -1]
This would also allow me to look at stats regarding the number of halos that don't get their ReionMod updated.
The new variable
GridReionMod
tracks the history of a galaxies value ofReionizationModifier
. The value is updated wheneverdo_reionization()
is called which is ininfall_recipe()
andstrip_from_satellite()
.However,
strip_from_satellite()
is only called if there is Hot Gas to be stripped from the satellite galaxy. IfHotGas <= 0.0
, thenstrip_from_satellite()
is never called and the reionization modifier for the galaxy is never updated. Hence we can have galaxies that exist at a specified redshift, but who's value forGridReionMod
is-1
(i.e., the initialized value).While
GridReionMod
could be updated outside of these two function calls, it may be useful to only calculate the value ofReionizationModifier
for galaxies who actually USE the reionization modifier. Will need to think on this more.