FS#307 Automatically save restart file before simulation breaks down
Metadata
Description
What do you think about creating a restart file just before the simulation stops when the maximum number of time step divisions has been reached?
So one could manually change some settings for the solver or set a different timestep size and resume from the very last point before the simulation ended.
My idea would be to include this in the timeIntegration() function:
....
serialize();
DUNE_THROW(Dune::MathError,
"Newton solver didn't converge after "
<< maxFails
<< " time-step divisions. dt="
<< this->timeManager().timeStepSize()
<< ". The solution of the last time step "
<< "has been saved to a restart file.");
.....