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

Restructure: define ComputeModelBasedKappaEAndKappaP #767

Merged
merged 19 commits into from
Oct 4, 2024

Conversation

chongchonghe
Copy link
Contributor

@chongchonghe chongchonghe commented Oct 2, 2024

Description

Another PR to restructure the code to increase readability.

This PR defines two functions: ComputeModelDependentKappaEAndKappaP and ComputeModelDependentKappaFAndDeltaTerms. They are used to replace the chunk of code that computes kappaE and kappaP, and kappaF 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:

  • I have added a description (see above).
  • I have added a link to any related issues see (see above).
  • I have read the Contributing Guide.
  • I have added tests for any new physics that this PR adds to the code.
  • I have tested this PR on my local computer and all tests pass.
  • I have manually triggered the GPU tests with the magic comment /azp run.
  • I have requested a reviewer for this PR.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 2, 2024
@chongchonghe
Copy link
Contributor Author

chongchonghe commented Oct 2, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Collaborator

@BenWibking BenWibking left a 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 👍 .

src/radiation/source_terms_multi_group.hpp Outdated Show resolved Hide resolved
src/radiation/source_terms_multi_group.hpp Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Oct 3, 2024

Copy link

sonarcloud bot commented Oct 3, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@chongchonghe
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Collaborator

@BenWibking BenWibking left a 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.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 3, 2024
@markkrumholz markkrumholz added this pull request to the merge queue Oct 3, 2024
Merged via the queue into development with commit 80d38c0 Oct 4, 2024
22 checks passed
@chongchonghe chongchonghe deleted the chongchong/define-compute-opacities branch October 6, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants