snappyHexMeshConfig: write addLayersControls sub-dictionary always

This commit is contained in:
Chris Greenshields
2023-07-19 11:31:05 +01:00
parent fbc36b8d21
commit 31679117a4

View File

@ -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");