Also need to clear atom map

This commit is contained in:
Stan Moore
2022-12-16 09:42:06 -07:00
parent 9e5b419e4e
commit 85ac3ac98b
2 changed files with 5 additions and 1 deletions

View File

@ -441,10 +441,12 @@ void CreateAtoms::command(int narg, char **arg)
MPI_Barrier(world);
double time1 = platform::walltime();
// clear global->local map for owned and ghost atoms
// clear ghost count and any ghost bonus data internal to AtomVec
// same logic as beginning of Comm::exchange()
// do it now b/c creating atoms will overwrite ghost atoms
if (atom->map_style != Atom::MAP_NONE) atom->map_clear();
atom->nghost = 0;
atom->avec->clear_bonus();