git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2689 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -513,7 +513,10 @@ void Comm::exchange()
|
|||||||
MPI_Status status;
|
MPI_Status status;
|
||||||
AtomVec *avec = atom->avec;
|
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();
|
if (map_style) atom->map_clear();
|
||||||
|
|
||||||
|
|||||||
@ -306,7 +306,8 @@ void FixDeposit::pre_exchange()
|
|||||||
|
|
||||||
// set tag # of new particle beyond all previous atoms
|
// set tag # of new particle beyond all previous atoms
|
||||||
// reset global natoms
|
// 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) {
|
if (success && atom->tag_enable) {
|
||||||
atom->tag_extend();
|
atom->tag_extend();
|
||||||
|
|||||||
@ -182,10 +182,12 @@ void FixEvaporate::pre_exchange()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// reset global natoms
|
// 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;
|
atom->natoms -= nwhack;
|
||||||
if (nwhack && atom->map_style) {
|
if (nwhack && atom->map_style) {
|
||||||
|
atom->nghost = 0;
|
||||||
atom->map_init();
|
atom->map_init();
|
||||||
atom->map_set();
|
atom->map_set();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user