-
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
Time loop refactorings; Extract pre and post. #2667
Conversation
9f1cb57
to
b0a585f
Compare
Unifies the monolithic and staggered cases.
Equal for both, the staggered and the monolithic cases.
Avoids "good" state by chance.
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.
Looks good.
ProcessLib/TimeLoop.cpp
Outdated
NumLib::NonlinearSolverStatus nonlinear_solver_status; | ||
preTimestepForAllProcesses(t, dt, _per_process_data, _process_solutions); | ||
|
||
NumLib::NonlinearSolverStatus nonlinear_solver_status{false, -1}; |
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.
For a readable source code, suggest to define the two variables for the arguments of the ctor of NumLib::NonlinearSolverStatus. For example:
NumLib::NonlinearSolverStatus nonlinear_solver_status{false, -1}; | |
const bool error_norms_met = false; | |
const int number_iterations = -1 | |
NumLib::NonlinearSolverStatus nonlinear_solver_status{error_norms_met, number_iterations}; |
|
||
NumLib::NonlinearSolverStatus nonlinear_solver_status{true, 0}; | ||
NumLib::NonlinearSolverStatus nonlinear_solver_status{false, -1}; |
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.
Here the same.
b0a585f
to
4493c7e
Compare
OpenGeoSys development has been moved to GitLab. |
Extract
preTimestep
andpostTimestep
calls into individual functions merging the monolithic and staggered implementations.No behavioural change for the staggered scheme.
For the monolithic scheme the
preTimestep
calls are now executed separately in the beginning.