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

Floating point exception inf pcg.c #1085

Open
AlbertNichols3 opened this issue Mar 25, 2024 · 1 comment
Open

Floating point exception inf pcg.c #1085

AlbertNichols3 opened this issue Mar 25, 2024 · 1 comment

Comments

@AlbertNichols3
Copy link

At pcg.c line 998, i_prod is negative and bi_prod is positive, Both on the order of 1e-12. The code is taking the square root of the ratio.

@AlbertNichols3 AlbertNichols3 changed the title Floating point exception inf pdg.c Floating point exception inf pcg.c Mar 25, 2024
@rfalgout
Copy link
Contributor

Hi Al. Do you have a way to turn up the print level so we can get more details on this particular solve? Both of these variables are supposed to stay positive, but they might drift away from that for a variety of reasons. Some of the questions I have include: Are you using a preconditioner? If so, what are the preconditioner settings (e.g., smoother settings for AMG, etc.)? Was this a serial or parallel run? GPU or CPU? ...

We have already added a bunch of checking in PCG for these variables, but it's clear we need to add some safeguards for the sqrt operations. We'll work on that in the meantime.

Thanks!

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

No branches or pull requests

2 participants