From 31679117a4e0cab6e46cf8f49ad2a5e3552ad4a7 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Wed, 19 Jul 2023 11:31:05 +0100 Subject: [PATCH] snappyHexMeshConfig: write addLayersControls sub-dictionary always --- .../snappyHexMeshConfig/snappyHexMeshConfiguration.C | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfiguration.C b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfiguration.C index 3312bd7e81..ba1a888e60 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfiguration.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfiguration.C @@ -432,10 +432,8 @@ void Foam::snappyHexMeshConfiguration::writeSnapControls() void Foam::snappyHexMeshConfiguration::writeAddLayersControls() { - if (layers_ == 0) - { - return; - } + // Include addLayersControls sub-dict with zero layers when layers are + // switched off, so they can be conveniently switched on later. beginDict(os_, "addLayersControls");