mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: ensure check file not written if 'none' option is set
This commit is contained in:
@ -15,6 +15,12 @@ writeChecksFormatType writeChecksFormat(writeChecksFormatType::none);
|
|||||||
|
|
||||||
auto writeMeshChecks = [&](const fvMesh& mesh, const writeChecksFormatType fmt)
|
auto writeMeshChecks = [&](const fvMesh& mesh, const writeChecksFormatType fmt)
|
||||||
{
|
{
|
||||||
|
// Early exit if 'none' option is set
|
||||||
|
if (fmt == writeChecksFormatType::none)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (UPstream::master())
|
if (UPstream::master())
|
||||||
{
|
{
|
||||||
fileName path(mesh.time().globalPath()/"checkMesh");
|
fileName path(mesh.time().globalPath()/"checkMesh");
|
||||||
|
|||||||
Reference in New Issue
Block a user