Merge pull request #3964 from lammps/compute-cluster-atom-bugfix

Fix bug with compute cluster/atom and aggregate/atom when used with fix deform
This commit is contained in:
Axel Kohlmeyer
2023-11-01 04:59:15 -04:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

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

View File

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