SmileiPIC / Smilei

Particle-in-cell code for plasma simulation
https://smileipic.github.io/Smilei
335 stars 119 forks source link

Force final step to be restartable option #719

Closed Horymir001 closed 4 months ago

Horymir001 commented 4 months ago

Hi, I suggest including an option to force the code to write a final timestep as a restartable checkpoint. This issue is of minor importance, it is rather about comfort.

mccoys commented 4 months ago

Yes i agree it makes sense

mccoys commented 4 months ago

Well, actually does this make sense? If the simulation is finished, then there is no point in doing a checkpoint. It cannot be restarted as it is already over. I guess you can change the simulation_time when you restart, but this is not good practice as some simulation parameters may depend on it.