git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9346 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
11
src/comm.cpp
11
src/comm.cpp
@ -798,10 +798,13 @@ void Comm::exchange()
|
||||
|
||||
// clear global->local map for owned and ghost atoms
|
||||
// b/c atoms migrate to new procs in exchange() and
|
||||
// new ghosts are created in borders()
|
||||
// new ghosts are created in borders()
|
||||
// map_set() is done at end of borders()
|
||||
// clear ghost count and any ghost bonus data internal to AtomVec
|
||||
|
||||
if (map_style) atom->map_clear();
|
||||
atom->nghost = 0;
|
||||
atom->avec->clear_bonus();
|
||||
|
||||
// subbox bounds for orthogonal or triclinic
|
||||
|
||||
@ -836,6 +839,7 @@ void Comm::exchange()
|
||||
}
|
||||
atom->nlocal = nlocal;
|
||||
|
||||
|
||||
// send/recv atoms in both directions
|
||||
// if 1 proc in dimension, no send/recv, set recv buf to send buf
|
||||
// if 2 procs in dimension, single send/recv
|
||||
@ -907,11 +911,6 @@ void Comm::borders()
|
||||
MPI_Status status;
|
||||
AtomVec *avec = atom->avec;
|
||||
|
||||
// clear old ghosts and any ghost bonus data internal to AtomVec
|
||||
|
||||
atom->nghost = 0;
|
||||
atom->avec->clear_bonus();
|
||||
|
||||
// do swaps over all 3 dimensions
|
||||
|
||||
iswap = 0;
|
||||
|
||||
Reference in New Issue
Block a user