From b7c76dcf7b9685d99a0be78608cc5f3861d06732 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 23 Nov 2011 10:37:25 +0000 Subject: [PATCH] BUG: fvMeshDistribute: disable fvPatchField reading triggering processor comms fixedGradientFvPatchField does evaluate() upon reading which triggers deltaCoeffs building which does parallel comms# Please enter the commit message for your changes. Lines starting --- src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C index 4f934e43..10ac3313 100644 --- a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C +++ b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C @@ -1818,6 +1818,9 @@ Foam::autoPtr 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::fvMeshDistribute::distribute } + UPstream::parRun() = oldParRun; + + // Start sending&receiving from buffers pBufs.finishedSends(); @@ -2064,6 +2070,9 @@ Foam::autoPtr 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::fvMeshDistribute::distribute } } + UPstream::parRun() = oldParRun; // Print a bit. if (debug) -- 2.11.4.GIT