dump problem

Dear LAMMPS users,

I have met a question that I have not met before. I need to have dump file that records every snapshot in every iteration. So my file is something like

label loopa
variable loopvar loop 100
clear
read_restart restart2.equil
dump 1 all atom 1 dump.abc

write_restart restart2.equil
next loopvar
jump in.restart loopa

The dump file can record snapshot of every iteration before but it can only have snapshots in the last iteration. Do you have any suggestion to modify it so that I can have snapshots for every iteration?

Best Regards,
Mengyu

I don't understand your Q.

If you use a dump with a freq = 1, and run for 1000
steps, you will get 1000 snapshots in the dump file.

Steve

Dear LAMMPS users,

I have met a question that I have not met before. I need to have dump file
that records every snapshot in every iteration. So my file is something like

label loopa
variable loopvar loop 100
clear
read_restart restart2.equil
dump 1 all atom 1 dump.abc

...

write_restart restart2.equil
next loopvar
jump in.restart loopa

The dump file can record snapshot of every iteration before but it can only
have snapshots in the last iteration. Do you have any suggestion to modify
it so that I can have snapshots for every iteration?

please search the mailing list archives. several suggestions
for how to handle this scenario have been given.

axel.