diff --git a/src/compute_aggregate_atom.cpp b/src/compute_aggregate_atom.cpp index e68062b73e9..54da23c302d 100644 --- a/src/compute_aggregate_atom.cpp +++ b/src/compute_aggregate_atom.cpp @@ -110,6 +110,11 @@ void ComputeAggregateAtom::compute_peratom() vector_atom = aggregateID; } + // communicate coords for ghost atoms if box can change, e.g. fix deform + // this ensures ghost atom coords are current + + comm->forward_comm(); + // invoke full neighbor list (will copy or build if necessary) // on the first step of a run, set preflag to one in neighbor->build_one(...) diff --git a/src/compute_cluster_atom.cpp b/src/compute_cluster_atom.cpp index ae44fbcd374..284a5dd23ad 100644 --- a/src/compute_cluster_atom.cpp +++ b/src/compute_cluster_atom.cpp @@ -99,6 +99,11 @@ void ComputeClusterAtom::compute_peratom() vector_atom = clusterID; } + // communicate coords for ghost atoms if box can change, e.g. fix deform + // this ensures ghost atom coords are current + + comm->forward_comm(); + // invoke full neighbor list (will copy or build if necessary) // on the first step of a run, set preflag to one in neighbor->build_one(...)