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 FPEs occurring when density is zero in MC #6383

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

ffoucart
Copy link
Contributor

Proposed changes

Make two fixes to unsafe part of the MC code when a zero density is provided to the neutrino interaction table; this allows us to restore 1/2 failing MC tests.

Upgrade instructions

None

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@ffoucart
Copy link
Contributor Author

@nilsdeppe

nilsdeppe
nilsdeppe previously approved these changes Nov 21, 2024
Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

LGTM, one suggestion

Comment on lines 23 to 27
void test_flat_space_time_step(const bool skip) {
CHECK(true);
// This test FPEs because the ghost zone handling is broken.
if (skip) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just

void test_flat_space_time_step() {

since presumably we won't need to skip this test anymore? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done (rebased and merged)

Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

Thanks!

@nilsdeppe nilsdeppe enabled auto-merge November 21, 2024 22:16
@nilsdeppe nilsdeppe merged commit b4232b3 into sxs-collaboration:develop Nov 21, 2024
23 checks passed
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