Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove integrate_Planck option, always integrate by default #740

Merged
merged 2 commits into from
Jan 20, 2020

Conversation

maxpkatz
Copy link
Member

PR summary

There existed an option to turn off the normal behavior of integrating the Planck function to get the blackbody spectrum at each group center. This was only used in the RadSphere test, and the alternative was to evalute the Planck function as piecewise constant within each energy group. This introduces code complexity without any obvious gain; we still get reasonable results using the more general expression, and reduce the number of code paths to maintain.

PR checklist

  • test suite needs to be run on this PR
  • this PR will change answers in the test suite
  • all functions have docstrings as per the coding conventions
  • the CHANGES file has been updated
  • if appropriate, this change is described in the docs

There existed an option to turn off the normal behavior of integrating
the Planck function to get the blackbody spectrum at each group center.
This was only used in the RadSphere test, and the alternative was to
evalute the Planck function as piecewise constant within each energy
group. This introduces code complexity without any obvious gain; we still
get reasonable results using the more general expression, and reduce
the number of code paths to maintain.
@zingale zingale merged commit cc2d0f6 into development Jan 20, 2020
@zingale zingale deleted the always_integrate_planck branch January 20, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants