diff --git a/src/GRANULAR/fix_pour.cpp b/src/GRANULAR/fix_pour.cpp index f41b2f84c9..b943712b01 100644 --- a/src/GRANULAR/fix_pour.cpp +++ b/src/GRANULAR/fix_pour.cpp @@ -473,6 +473,7 @@ void FixPour::pre_exchange() atom->tag_extend(); atom->natoms += nnear - nprevious; if (atom->map_style) { + atom->nghost = 0; atom->map_init(); atom->map_set(); } diff --git a/src/create_atoms.cpp b/src/create_atoms.cpp index 2f128470ab..dd66dfc664 100644 --- a/src/create_atoms.cpp +++ b/src/create_atoms.cpp @@ -151,6 +151,7 @@ void CreateAtoms::command(int narg, char **arg) if (atom->natoms <= MAXATOMS) atom->tag_extend(); if (atom->map_style) { + atom->nghost = 0; atom->map_init(); atom->map_set(); } diff --git a/src/fix_deposit.cpp b/src/fix_deposit.cpp index 396be0acb6..64f656e9d4 100644 --- a/src/fix_deposit.cpp +++ b/src/fix_deposit.cpp @@ -311,6 +311,7 @@ void FixDeposit::pre_exchange() atom->tag_extend(); atom->natoms += 1; if (atom->map_style) { + atom->nghost = 0; atom->map_init(); atom->map_set(); } diff --git a/src/replicate.cpp b/src/replicate.cpp index b5e4ae162f..856bb90d6e 100644 --- a/src/replicate.cpp +++ b/src/replicate.cpp @@ -382,6 +382,7 @@ void Replicate::command(int narg, char **arg) // create global mapping and bond topology now that system is defined if (atom->map_style) { + atom->nghost = 0; atom->map_init(); atom->map_set(); } diff --git a/src/special.cpp b/src/special.cpp index 54953ddde9..c1ddbfbe88 100644 --- a/src/special.cpp +++ b/src/special.cpp @@ -687,5 +687,6 @@ void Special::combine() // re-create map + atom->nghost = 0; atom->map_set(); } diff --git a/src/velocity.cpp b/src/velocity.cpp index 1b10d66fa6..7ba5361f39 100644 --- a/src/velocity.cpp +++ b/src/velocity.cpp @@ -193,6 +193,7 @@ void Velocity::create(int narg, char **arg) if (atom->map_style == 0) { mapflag = 1; atom->map_style = 1; + atom->nghost = 0; atom->map_init(); atom->map_set(); }