forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2689 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
a750dd2a47
commit
ffa3b8c1ee
|
@ -513,7 +513,10 @@ void Comm::exchange()
|
|||
MPI_Status status;
|
||||
AtomVec *avec = atom->avec;
|
||||
|
||||
// clear global->local map since atoms move & new ghosts are created
|
||||
// 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()
|
||||
// map_set() is done at end of borders()
|
||||
|
||||
if (map_style) atom->map_clear();
|
||||
|
||||
|
|
|
@ -306,7 +306,8 @@ void FixDeposit::pre_exchange()
|
|||
|
||||
// set tag # of new particle beyond all previous atoms
|
||||
// reset global natoms
|
||||
// if global map exists, reset it
|
||||
// if global map exists, reset it now instead of waiting for comm
|
||||
// since deleting atoms messes up ghosts
|
||||
|
||||
if (success && atom->tag_enable) {
|
||||
atom->tag_extend();
|
||||
|
|
|
@ -182,10 +182,12 @@ void FixEvaporate::pre_exchange()
|
|||
}
|
||||
|
||||
// reset global natoms
|
||||
// if global map exists, reset it
|
||||
// if global map exists, reset it now instead of waiting for comm
|
||||
// since deleting atoms messes up ghosts
|
||||
|
||||
atom->natoms -= nwhack;
|
||||
if (nwhack && atom->map_style) {
|
||||
atom->nghost = 0;
|
||||
atom->map_init();
|
||||
atom->map_set();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue