-
Notifications
You must be signed in to change notification settings - Fork 107
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
[newton] fixed bugs with residual being exactly 0 #932
Conversation
Codecov Report
|
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.
Thanks for the fix, @HenKlei. Maybe it would be more elegant to require atol/rtol to be >= 0 and to let both default to 0? What do you think?
Yes, I think that's better. That was also my first idea. Then we can remove the first |
Don't think so. If |
Yeah, you're absolutely right. Having 0 as default value for atol and rtol, that should work. |
I think this is the simplest solution now. The test is also working as expected. Thus, merging is fine with me. |
Looks good to me! I will merge as is. |
Addresses #927.
This merge request fixes a bug that occurred when the residual in the Newton algorithm becomes exactly 0.