Skip to content
Snippets Groups Projects
Commit 8803896d authored by laurence's avatar laurence
Browse files

BUG: foamyHexMesh: Write control for backgroundMeshDecomposition

parent f559a96b
Branches
Tags
No related merge requests found
......@@ -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);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment