git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13484 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2015-05-21 19:10:38 +00:00
parent 9d8ec277cb
commit 43d738e168
1 changed files with 7 additions and 3 deletions

View File

@ -710,10 +710,14 @@ void ReadRestart::header(int incompatible)
int procgrid[3];
read_int();
read_int_vec(3,procgrid);
int flag = 0;
if (comm->user_procgrid[0] != 0 &&
(procgrid[0] != comm->user_procgrid[0] ||
procgrid[1] != comm->user_procgrid[1] ||
procgrid[2] != comm->user_procgrid[2]) && me == 0)
procgrid[0] != comm->user_procgrid[0]) flag = 1;
if (comm->user_procgrid[1] != 0 &&
procgrid[1] != comm->user_procgrid[1]) flag = 1;
if (comm->user_procgrid[2] != 0 &&
procgrid[2] != comm->user_procgrid[2]) flag = 1;
if (flag && me == 0)
error->warning(FLERR,"Restart file used different 3d processor grid");
// don't set newton_pair, leave input script value unchanged