BUG: ensure check file not written if 'none' option is set

This commit is contained in:
Andrew Heather
2025-09-04 09:23:10 +01:00
parent 88ff32b713
commit a26f7c243a

View File

@ -15,6 +15,12 @@ writeChecksFormatType writeChecksFormat(writeChecksFormatType::none);
auto writeMeshChecks = [&](const fvMesh& mesh, const writeChecksFormatType fmt)
{
// Early exit if 'none' option is set
if (fmt == writeChecksFormatType::none)
{
return;
}
if (UPstream::master())
{
fileName path(mesh.time().globalPath()/"checkMesh");