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

Avoid dividing by zero in constexpr linear algebra routines #1603

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

yut23
Copy link
Collaborator

@yut23 yut23 commented Jul 5, 2024

RHS::dgefa() now stops if the matrix is singular, and returns an integer that works the same as the info parameter for the routine in linpack.H. If the LU decomposition fails, it is the index of the row that failed, and is zero if the decomposition succeeded.

This fixes the crash in Detonation-collision-retry-SDC in the Castro test suite. The benchmark does need to be updated, since it now stops at step 10 instead of 11, and the plotfile for that step was last updated before we changed the setup in AMReX-Astro/Castro#2806.

This fixes the crash in `Detonation-collision-retry-SDC` in the Castro
test suite.
yut23 added a commit to yut23/Castro that referenced this pull request Jul 6, 2024
@zingale
Copy link
Member

zingale commented Jul 8, 2024

@zingale
Copy link
Member

zingale commented Jul 8, 2024

we'll have to do a separate Castro PR to add the info to the true SDC stuff

@zingale zingale merged commit 523b4be into AMReX-Astro:development Jul 8, 2024
30 checks passed
@yut23 yut23 deleted the avoid-dgefa-fpe branch July 8, 2024 21:27
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