You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the checkpointing assumes that the solver time step is equal to the coupling time window. More specifically, whenever preCICE does not ask the solver to read a checkpoint, the solver writes a checkpoint of the current solution. However, this also means that the checkpoint will be updated at every solver time step and the solver will not return to the right state when subcycling.
Two more problems:
There is no checkpointing of the time itself, we only have a time_it += 1.
We are essentially tricking preCICE, telling it that we read/wrote checkpoints at different points that we actually do. This makes the code difficult to follow.
The SolidSolver.py, as well as the C++ solvers, also have the same flaw.
The text was updated successfully, but these errors were encountered:
Looking at the FluidSolver.py, I noticed that a few things are a bit uncommon in the time loop:
tutorials/elastic-tube-1d/fluid-python/FluidSolver.py
Lines 127 to 156 in 95eea58
It looks like the checkpointing assumes that the solver time step is equal to the coupling time window. More specifically, whenever preCICE does not ask the solver to read a checkpoint, the solver writes a checkpoint of the current solution. However, this also means that the checkpoint will be updated at every solver time step and the solver will not return to the right state when subcycling.
Two more problems:
time_it += 1
.The
SolidSolver.py
, as well as the C++ solvers, also have the same flaw.The text was updated successfully, but these errors were encountered: