From a26f7c243a9f8f249c6d9e7ba0c8791ef41ed5ec Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Thu, 4 Sep 2025 09:23:10 +0100 Subject: [PATCH] BUG: ensure check file not written if 'none' option is set --- .../utilities/mesh/manipulation/checkMesh/writeMeshChecks.H | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/applications/utilities/mesh/manipulation/checkMesh/writeMeshChecks.H b/applications/utilities/mesh/manipulation/checkMesh/writeMeshChecks.H index e3d80bb154..ade72a8e46 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/writeMeshChecks.H +++ b/applications/utilities/mesh/manipulation/checkMesh/writeMeshChecks.H @@ -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");