Also need to clear atom map
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user