BUG: foamyHexMesh: Write control for backgroundMeshDecomposition

This commit is contained in:
laurence
2013-06-14 17:17:54 +01:00
parent f559a96bfd
commit 8803896d37

View File

@ -251,11 +251,16 @@ Foam::cvControls::cvControls
writeCellShapeControlMesh_ =
Switch(filteringDict.lookup("writeCellShapeControlMesh"));
writeBackgroundMeshDecomposition_ =
(
Switch(filteringDict.lookup("writeBackgroundMeshDecomposition"))
&& Pstream::parRun()
);
if (Pstream::parRun())
{
writeBackgroundMeshDecomposition_ =
Switch(filteringDict.lookup("writeBackgroundMeshDecomposition"));
}
else
{
writeBackgroundMeshDecomposition_ = Switch(false);
}
}