git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2689 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2009-03-19 14:54:04 +00:00
parent a750dd2a47
commit ffa3b8c1ee
3 changed files with 9 additions and 3 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();
}