diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index 2b43537186e459d7c84be845a189e4ddc5773be0..23d62c26520a081b88412a4861ec385528d5bb77 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -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); } diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 50a48a0e91d80b3c23c5e20eb7c8b153fedaba01..b71a9d4237cafe8213cfc7183c825cb6b04a3d12 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -837,6 +837,8 @@ bool Foam::AMIInterpolation::calculate << "AMI: no source faces present - no addressing constructed" << endl; + singlePatchProc_ = UPstream::myProcNo(comm_); + return false; }