forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4185 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
dd62273281
commit
c4d4790d18
|
@ -96,13 +96,15 @@ void WriteRestart::command(int narg, char **arg)
|
|||
|
||||
// move atoms to new processors before writing file
|
||||
// enforce PBC before in case atoms are outside box
|
||||
// call borders() to rebuild atom map since exchange() destroys map
|
||||
|
||||
if (domain->triclinic) domain->x2lamda(atom->nlocal);
|
||||
domain->pbc();
|
||||
domain->reset_box();
|
||||
comm->setup();
|
||||
comm->exchange();
|
||||
if (domain->triclinic) domain->lamda2x(atom->nlocal);
|
||||
comm->borders();
|
||||
if (domain->triclinic) domain->lamda2x(atom->nlocal+atom->nghost);
|
||||
|
||||
write(file);
|
||||
delete [] file;
|
||||
|
|
Loading…
Reference in New Issue