BUG: redistributePar: Differing communicator. See #3053.

redistributePar -decompose switches communicator when
reading on master. However other processors still get
constructed with the worldComm. >v2306 AMI stores the communicator
from construction time there was a mismatch
This commit is contained in:
mattijs
2023-12-13 12:56:59 +00:00
parent f99bcd1f6c
commit 5cdc8c6fde

View File

@ -437,6 +437,9 @@ void Foam::cyclicAMIPolyPatch::resetAMI(const UList<point>& points) const
// Construct/apply AMI interpolation to determine addressing and weights // Construct/apply AMI interpolation to determine addressing and weights
AMIPtr_->upToDate(false); AMIPtr_->upToDate(false);
// Note: e.g. redistributePar might construct the AMI with a different
// worldComm so reset it to the mesh.comm.
AMIPtr_->comm(boundaryMesh().mesh().comm());
AMIPtr_->calculate(patch0, nbrPatch0, surfPtr()); AMIPtr_->calculate(patch0, nbrPatch0, surfPtr());
if (debug) if (debug)