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

Fix mean opacities #60

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Fix mean opacities #60

merged 2 commits into from
Jan 7, 2025

Conversation

Yurlungur
Copy link
Collaborator

In the recent MR #58 where runtime physical constants were added, the mean opacities needed to be changed to not look for the compile time constants. I make that modification here. @AstroBarker saw this when trying to update singularity-opac in phoebus.

I know we are likely going to make more changes here soon to support Artemis + Riot but I think it's worth fixing this now, and then we can iterate later as needed.

@AstroBarker
Copy link
Collaborator

Thanks for going after this! It doesn't seem to be compiling for me with a Debug build with several expected primary expression before ( pointing to, e.g., mean_opacity_neutrinos.hpp:144, auto RPC = RuntimePhysicalConstants(PC). Also, the mean neutrino opacity test fails locally for me.

@Yurlungur
Copy link
Collaborator Author

Thanks for going after this! It doesn't seem to be compiling for me with a Debug build with several expected primary expression before ( pointing to, e.g., mean_opacity_neutrinos.hpp:144, auto RPC = RuntimePhysicalConstants(PC). Also, the mean neutrino opacity test fails locally for me.

Oops my bad... Didn't run tests. Need to call the constructor in that check. Try now.

Copy link
Collaborator

@AstroBarker AstroBarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiling and all tests passing locally now. Thanks!

singularity-opac/neutrinos/mean_opacity_neutrinos.hpp Outdated Show resolved Hide resolved
@Yurlungur Yurlungur self-assigned this Jan 2, 2025
@Yurlungur Yurlungur added the bug Something isn't working label Jan 2, 2025
Copy link
Collaborator

@brryan brryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for catching this

@Yurlungur Yurlungur merged commit e3dce4c into main Jan 7, 2025
1 check passed
@Yurlungur Yurlungur deleted the jmm/fix-mean-opacities branch January 7, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants