Skip to content

Commit

Permalink
Merge pull request lammps#3964 from lammps/compute-cluster-atom-bugfix
Browse files Browse the repository at this point in the history
Fix bug with compute cluster/atom and aggregate/atom when used with fix deform
  • Loading branch information
akohlmey authored Nov 1, 2023
2 parents f0a1503 + 74efe0a commit b8a0622
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compute_aggregate_atom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)

Expand Down
5 changes: 5 additions & 0 deletions src/compute_cluster_atom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)

Expand Down

0 comments on commit b8a0622

Please sign in to comment.