Closed jhmatthews closed 3 months ago
This can be merged now. This fix produces much better heating and cooling matches with Cloudy in the intermediate U regime: hc_macro_xs.pdf
Compared to the old behaviour here: hc_dev_macro_problems.pdf
Regression tests produce relatively small changes (only in the macro-atom runs), e.g.:
Please note this increases runtime in some ionization cycles, which is fairly unavoidable. In agn_macro regression test, the photon transport takes 16 seconds compared to 12 before.
Final note: this includes a mode for not using macro_pops for ionization fractions. I still need to add a way for the user to actually use this.
This PR makes four changes:
This should not be merged yet, I'd like to test the first change a bit more and also allow the user to access the bottom mode properly.