git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@642 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -378,10 +378,10 @@ void ReadRestart::header()
|
||||
|
||||
} else if (flag == DIMENSION) {
|
||||
int dimension = read_int();
|
||||
if (dimension != force->dimension && me == 0)
|
||||
if (dimension != domain->dimension && me == 0)
|
||||
error->warning("Resetting dimension to restart file value");
|
||||
force->dimension = dimension;
|
||||
if (force->dimension == 2 && domain->zperiodic == 0)
|
||||
domain->dimension = dimension;
|
||||
if (domain->dimension == 2 && domain->zperiodic == 0)
|
||||
error->all("Cannot run 2d simulation with nonperiodic Z dimension");
|
||||
|
||||
// read nprocs_file from restart file, warn if different
|
||||
|
||||
Reference in New Issue
Block a user