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

This commit is contained in:
sjplimp 2010-05-21 19:45:47 +00:00
parent dd62273281
commit c4d4790d18
1 changed files with 3 additions and 1 deletions

View File

@ -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;