-
Notifications
You must be signed in to change notification settings - Fork 239
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
Added flexible nonlinear solver convergence criteria #1342
Conversation
036923f
to
c54d2a5
Compare
I'd like to finish the documentation during code review once everybody agrees about the general structures introduced in this PR. So please at least have a brief look at the three pieces highlighted above. |
Jenkins, test this please. |
namespace MeshLib | ||
{ | ||
class Mesh; | ||
} // Mesh |
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.
If commenting, then 'namespace MeshLib', please. 👍
Technically OK, didn't look into design too much, tough. Maybe a 10 minutes overview on Monday would be beneficial. |
return createConvergenceCriterionPerComponentDeltaX(config); | ||
} | ||
|
||
OGS_FATAL("There is no convergence criterion of type `%s'.", type.c_str()); |
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.
``%s'->
'%s'`? i mean using a single quotation for both. If it's your intention, it's ok.
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.
I usually intend it this way.
and where is a convergence criterion class checking a relative error? |
|
sorry i meant residual check |
you can support residual check later but keep in mind tha one can not trust Newton result without checking residuals. |
⏩ from my side. |
|
||
if ((!abstols) && (!reltols)) | ||
OGS_FATAL( | ||
"At least one of absolute or relative tolerance has to be " |
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.
but the constructor of ConvergenceCriterionPerComponentDeltaX requires both abstols and retools are provided...
I just added a separate function for relative tolerance checks, which also works if b in |
👍 |
1 similar comment
👍 |
OpenGeoSys development has been moved to GitLab. |
Follow-up of #1315 and of #1349.Closes #1339.
Core things:
TODO
For later: