Trial time#1682
Conversation
|
I've ran through the changes and can say, it's a solid step in the right direction! Some thoughts here. I like how we distinguish between statuses The old The time stepper class is composed of 3 components. So to say, I really like where this project is going, good job @jwboth! Will add a few minor notes in the code below. |
|
Thanks @Yuriyzabegaev for having a look. I was not aware of the fact that this code snippet was ready :) The idea here was just to provide the orchestration skeleton underlining the integration of the time manager.
STOPPED indeed associates with critical failure. The idea has been to use the same style as in NewtonSolver. It will be possible to distinguish which criterion failed from an info object. But I may want to discuss it, as the current solution may be too verbose (it stores essentially everything).
I all pro chopping it up into smaller pieces. Before doing that, one has to decide how time steps are cut. Should there be always 1 rule or allow we for multiple rules? Or will this be the responsibility/design choice of a class that shall suggest time step sizes? The model does only need to know time and dt, nothing more.
Fully agreed. We can talk about it. Current idea was to end up with a similar design as for NewtonSolver, where it is also possible to customize criteria from solver_params. I will continue once #1684 is merged as it also touched the model runner - the main idea was actually to throw away this branch... but now its here. |
IvarStefansson
left a comment
There was a problem hiding this comment.
I like the design. I think we should leave what is left in the TimeManager for this PR as far as possible.
Let's meet and discuss how to proceed, @Yuriyzabegaev.
Yuriyzabegaev
left a comment
There was a problem hiding this comment.
I highlighted some important changes, hope it helps reviewing it.
409dd32 to
35adbb2
Compare
35adbb2 to
cadc1dc
Compare
keileg
left a comment
There was a problem hiding this comment.
Partial review, I ran out of energy before having looked at the tests in earnest. I will try to return to these later today.
…ONVERGED or FAILED
9fa641c to
ae40ba0
Compare
Proposed changes
Contributions to PorePy are highly appreciated. Clearly explain why this pull request (PR) is needed and why it should be accepted. If this PR solves an issue, explain how it is done. Please, also summarise the changes to the code.
Types of changes
What types of changes does this PR introduce to PorePy?
Put an
xin the boxes that apply.Checklist
Put an
xin the boxes that apply or explain briefly why the box is not relevant.pytestwas run with the--run-skippedflag.