BUG: redistributePar: restore. Fix AMIInterpolation. fixes #3125

Problem was that the zero fvMeshSubset constructed did not reset
the distributed flag.
This commit is contained in:
mattijs 2024-03-28 14:50:34 +00:00
parent 483075b4aa
commit 13f66313d1
2 changed files with 2 additions and 2 deletions

View File

@ -727,13 +727,11 @@ autoPtr<mapDistributePolyMesh> redistributeAndWrite
{
// A zero-sized mesh with boundaries.
// This is used to create zero-sized fields.
const bool oldParRun = UPstream::parRun(false);
subsetterPtr.reset(new fvMeshSubset(mesh, zero{}));
subsetterPtr().subMesh().init(true);
subsetterPtr().subMesh().globalData();
subsetterPtr().subMesh().tetBasePtIs();
subsetterPtr().subMesh().geometricD();
UPstream::parRun(oldParRun);
}

View File

@ -837,6 +837,8 @@ bool Foam::AMIInterpolation::calculate
<< "AMI: no source faces present - no addressing constructed"
<< endl;
singlePatchProc_ = UPstream::myProcNo(comm_);
return false;
}