Cannot read restart file after simulation box is defined

Dear all,

I want to perform a set of simulations and their initial state are all defined by a same restart file, so I want to use “loop” to reduce the coding work. However, an error information showed up says that I Cannot read restart file after simulation box is defined. Is there some method to realize my idea?

Follow is part of my code:

variable Epka equal 3

label loop

variable x loop 3

variable dis equal ${x}*15

#-------------------------- READ DATA--------------------------

read_restart restart.cementite-fe.bilayer-10K

…………………………

next x

jump in.ce-fe.pka loop

Dear all,

      I want to perform a set of simulations and their initial state are all
defined by a same restart file, so I want to use “loop” to reduce the
coding work. However, an error information showed up says that I Cannot read
restart file after simulation box is defined. Is there some method to
realize my idea?

check out the "clear" command.

axel.