From c4d4790d18c601f0cbe21b2d69be39f199600dcb Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 21 May 2010 19:45:47 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4185 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/write_restart.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/write_restart.cpp b/src/write_restart.cpp index 4d3ca6d26f..7b52d53d1a 100644 --- a/src/write_restart.cpp +++ b/src/write_restart.cpp @@ -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;