restart command to overwrite restartfiles

thank you for the suggestion sir,

i.e., you want me use the following command instead

restart 5000 mont.restart

but if I give restart file name without *,

it is generating new restart file with timestep appended at the end of filename but not overwriting the old ones… in such case, I will get almost 200 restart files.

-shravani

thank you for the suggestion sir,
i.e., you want me use the following command instead

restart 5000 mont.restart
..
but if I give restart file name without *,
it is generating new restart file with timestep appended at the end of filename but not overwriting the old ones.. in such case, I will get almost 200 restart files.

ok. i see your point.
i essentially always use the two file restart option and forgot about
the restart command appending the time step automatically.

so why not use just this two file option, as it is the best and safest
option to have a restart file in case a simulation crashes during the
run without overusing disk storage?
and then just write out one file after the run with write_restart e.g.
like this:

restart 5000 a.tmp.restart b.tmp.restart
run 1000000
write_restart mont.*.restart
shell rm a.tmp.restart b.tmp.restart

anything else (e.g. a "maxfiles" option like with dump) would require
modifications to the source code

axel.

thank you sir,

it is working.

Now I am able to get what I required with your suggestion.

-shravani