reconstructPar: Fix to prevent unnecessary reconstruction of multi-region cases

This commit is contained in:
Will Bainbridge
2022-08-23 17:01:59 +01:00
parent 7c5ed3911f
commit 7e018cead8

View File

@ -909,7 +909,7 @@ bool Foam::domainDecomposition::readDecompose(const bool doSets)
(
"cellProc",
completeMesh().facesInstance(),
completeMesh().meshDir(),
polyMesh::meshSubDir,
completeMesh()
);
IOobject procFaceIo
@ -1016,8 +1016,8 @@ bool Foam::domainDecomposition::readReconstruct(const bool doSets)
(
"cellProcAddressing",
procMeshes()[0].facesInstance(),
procMeshes()[0].meshDir(),
runTimes_.procTimes()[0]
polyMesh::meshSubDir,
procMeshes()[0]
);
const bool load = faceIo.headerOk() && procAddrIo.headerOk();