Warwick-Plasma / epoch

Particle-in-cell code for plasma physics simulations
https://epochpic.github.io
GNU General Public License v3.0
185 stars 59 forks source link

Question about restarting the simulation #600

Closed zhangli28 closed 11 months ago

zhangli28 commented 12 months ago

Dear @Status-Mirror,

I have a question regarding restarting the code from dumped files.

restart_dump_every = 0 implies that the code can be restarted from any of the dumped files. And

restart_dump_every = -1 implies no resatable file except first (if final is still not reached due to exceeding the allowed wall time on supercomputer)

Is it possible to make every "nth" file to be restartable (nth may be every 10th or 20th file)?

Thank you.

Best regards, Zhang

Status-Mirror commented 12 months ago

Hey Zhang,

Yes, you have read the documentation right. It should be pretty obvious which files are restart dumps, because they'll be significantly larger than the other output files.

Some examples of other ways to restart the simulation are given on our basic examples page.

Cheers, Stuart

zhangli28 commented 11 months ago

Dear @Status-Mirror,

Thank you for the help.

best regards, Zhang