From 25280443aa82f2fbd85315f7d59c5d4fbcce9d6f Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 18 Aug 2008 20:32:29 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2062 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/comm.cpp | 4 ++++ src/fix_deform.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/comm.cpp b/src/comm.cpp index 7698e9c8c3..a286968810 100644 --- a/src/comm.cpp +++ b/src/comm.cpp @@ -982,8 +982,12 @@ void Comm::reverse_comm_compute(Compute *compute) void Comm::irregular() { // clear global->local map since atoms move to new procs + // zero out ghosts so map_set() at end will operate only on local atoms + // exchange() doesn't need to zero ghosts b/c borders() + // is called right after and it zeroes ghosts and calls map_set() if (map_style) atom->map_clear(); + atom->nghost = 0; // subbox bounds for orthogonal or triclinic diff --git a/src/fix_deform.cpp b/src/fix_deform.cpp index 153d7a6b0d..7aaec977b4 100644 --- a/src/fix_deform.cpp +++ b/src/fix_deform.cpp @@ -477,13 +477,13 @@ void FixDeform::pre_exchange() domain->xy = set[5].tilt_target = set[5].tilt_flip; domain->set_global_box(); domain->set_local_box(); - + double **x = atom->x; int *image = atom->image; int nlocal = atom->nlocal; for (int i = 0; i < nlocal; i++) domain->remap(x[i],image[i]); - + domain->x2lamda(atom->nlocal); comm->irregular(); domain->lamda2x(atom->nlocal);