mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
twoPhaseMixtureThermo: Fix for collated file operation
twoPhaseMixtureThermo writes the temperatures during construction only for them to be read again immediately after by construction of the individual phases' thermo models. When running with collated file handling this behaviour is not thread safe. This change deactivates threading for the duration of this behaviour. Patch contributed by Mattijs Janssens
This commit is contained in:
@ -938,7 +938,7 @@ bool Foam::decomposedBlockData::writeBlocks
|
||||
label startProc = 1;
|
||||
label nSendProcs = nProcs-1;
|
||||
|
||||
while (nSendProcs > 0)
|
||||
while (nSendProcs > 0 && startProc < nProcs)
|
||||
{
|
||||
nSendProcs = calcNumProcs
|
||||
(
|
||||
@ -952,7 +952,7 @@ bool Foam::decomposedBlockData::writeBlocks
|
||||
startProc
|
||||
);
|
||||
|
||||
if (startProc == nProcs || nSendProcs == 0)
|
||||
if (nSendProcs == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user