Regularity outputs with restart (in particular for phys_fields)
The regularity of the saving could be improved.
Some functions _online_save
would have to be modified, in particular here:
-
https://foss.heptapod.net/fluiddyn/fluidsim/blob/branch/default/fluidsim/base/output/base.py#L698
-
https://foss.heptapod.net/fluiddyn/fluidsim/blob/branch/default/fluidsim/base/output/base.py#L620
Now, the condition is
self.sim.time_stepping.t - self.t_last_save >= self.period_save - 1e-14
We could instead use the evolution of self.sim.time_stepping.t % self.period_save
.