mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: fvMeshDistribute: disable fvPatchField reading triggering processor comms
fixedGradientFvPatchField does evaluate() upon reading which triggers deltaCoeffs building which does parallel comms
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user