-
Notifications
You must be signed in to change notification settings - Fork 12
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
Restructure: define ComputeModelBasedKappaEAndKappaP #767
Restructure: define ComputeModelBasedKappaEAndKappaP #767
Conversation
for more information, see https://pre-commit.ci
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overall looks good 👍 .
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Quality Gate passedIssues Measures |
Please retry analysis of this Pull-Request directly on SonarCloud |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, assuming GPU tests pass.
Description
Another PR to restructure the code to increase readability.
This PR defines two functions:
ComputeModelDependentKappaEAndKappaP
andComputeModelDependentKappaFAndDeltaTerms
. They are used to replace the chunk of code that computeskappaE
andkappaP
, andkappaF
based on the opacity model, controlled by constant if.Related issues
This will simplify a large chunk of code in #766, where the same code is repeatedly used in all three energy exchange functions. I would like to merge in this PR before #766 .
Checklist
Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an
x
inside the square brackets[ ]
in the Markdown source below:/azp run
.