-
Notifications
You must be signed in to change notification settings - Fork 47
Fix divide by zero in gmres 423 #453
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 divide by zero in gmres 423 #453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ktbolt I have some doubts about this problem.
I am skeptical about the fact that changing boundary conditions we get exactly zero as a result from some function in gmres. It makes me think that some variables enter the function zero-initialized. Also in the commit bf76a32, I commented a portion that would have prevented this problem.
Did you try to set the same incorrect BCs to any other case in fluid dynamics and replicate this problem? Also does this problem relates to gmres or bipn?
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #453 +/- ##
==========================================
- Coverage 67.45% 67.44% -0.01%
==========================================
Files 170 170
Lines 34173 34179 +6
Branches 5736 5739 +3
==========================================
+ Hits 23050 23053 +3
- Misses 10985 10988 +3
Partials 138 138 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@dcodoni I am not as familiar as you are with what is going on in But as stated in the Issue setting an inlet boundary condition for svMultiPhysics/tests/cases/fluid/pipe_RCR_3d like so causes the |
* Change file name. * Add check for gmres zero norm.
Ill-posed boundary conditions can cause a divide by zero fault #423.
I've added a check for this that throws an exception if a zero norm is computed.