diff --git a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C index 4f934e43d40ec453d243b243200dcc42896da705..10ac331363c8f4217b4b382b075ac2f722b846e7 100644 --- a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C +++ b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C @@ -1818,6 +1818,9 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute // What to send to neighbouring domains // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + bool oldParRun = UPstream::parRun(); + UPstream::parRun() = false; + forAll(nSendCells[Pstream::myProcNo()], recvProc) { if @@ -1966,6 +1969,9 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute } + UPstream::parRun() = oldParRun; + + // Start sending&receiving from buffers pBufs.finishedSends(); @@ -2064,6 +2070,9 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute // Receive and add what was sent // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + oldParRun = UPstream::parRun(); + UPstream::parRun() = false; + forAll(nSendCells, sendProc) { // Did processor sendProc send anything to me? @@ -2371,6 +2380,7 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute } } + UPstream::parRun() = oldParRun; // Print a bit. if (debug) diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C index fe0643c1951bf15056fdf64f6f46039ba560a6f8..165b8c4d5567f8b8e52eaeae8e731e8e3d50e8c5 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C @@ -134,7 +134,7 @@ void Foam::surfaceInterpolation::makeWeights() const { if (debug) { - Info<< "surfaceInterpolation::makeWeights() : " + Pout<< "surfaceInterpolation::makeWeights() : " << "Constructing weighting factors for face interpolation" << endl; } @@ -188,7 +188,7 @@ void Foam::surfaceInterpolation::makeWeights() const if (debug) { - Info<< "surfaceInterpolation::makeWeights() : " + Pout<< "surfaceInterpolation::makeWeights() : " << "Finished constructing weighting factors for face interpolation" << endl; } @@ -199,7 +199,7 @@ void Foam::surfaceInterpolation::makeDeltaCoeffs() const { if (debug) { - Info<< "surfaceInterpolation::makeDeltaCoeffs() : " + Pout<< "surfaceInterpolation::makeDeltaCoeffs() : " << "Constructing differencing factors array for face gradient" << endl; } @@ -244,7 +244,7 @@ void Foam::surfaceInterpolation::makeNonOrthDeltaCoeffs() const { if (debug) { - Info<< "surfaceInterpolation::makeNonOrthDeltaCoeffs() : " + Pout<< "surfaceInterpolation::makeNonOrthDeltaCoeffs() : " << "Constructing differencing factors array for face gradient" << endl; } @@ -306,7 +306,7 @@ void Foam::surfaceInterpolation::makeNonOrthCorrectionVectors() const { if (debug) { - Info<< "surfaceInterpolation::makeNonOrthCorrectionVectors() : " + Pout<< "surfaceInterpolation::makeNonOrthCorrectionVectors() : " << "Constructing non-orthogonal correction vectors" << endl; } @@ -377,7 +377,7 @@ void Foam::surfaceInterpolation::makeNonOrthCorrectionVectors() const if (debug) { - Info<< "surfaceInterpolation::makeNonOrthCorrectionVectors() : " + Pout<< "surfaceInterpolation::makeNonOrthCorrectionVectors() : " << "Finished constructing non-orthogonal correction vectors" << endl; }