lanl / phoebus

Phifty One Ergs Blows Up A Star
BSD 3-Clause "New" or "Revised" License
32 stars 0 forks source link

Mean opacity constructors expect CGS unit opacities, not NonCGSUnits<>! #143

Closed brryan closed 1 year ago

brryan commented 1 year ago

I noticed that when running outside of scale_free mode with radiation, the mean opacities are incorrect. This is because the mean opacity constructors expect an opacity without a unit conversion, e.g. Gray, whereas in phoebus outside of scale_free mode we pass in e.g. NonCGSUnits<Gray>.

My solution, to store both CGS and non-CGS host opacities, is a bit yucky. I wonder if this further motivates a singularity-opac refactor to deal also with the issue of too many variants brought up by @Yurlungur previously.

PR Summary

PR Checklist