From 90a07ff4ccff6d3f083ed28750dafd39dae1d4d2 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Mon, 29 May 2017 15:18:35 +0200 Subject: [PATCH] BUG: enum constant in boolean context --- src/dynamicMesh/meshSubsetHelper/meshSubsetHelper.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dynamicMesh/meshSubsetHelper/meshSubsetHelper.C b/src/dynamicMesh/meshSubsetHelper/meshSubsetHelper.C index 7a7d4fbcf7f..2e55e4a0ea3 100644 --- a/src/dynamicMesh/meshSubsetHelper/meshSubsetHelper.C +++ b/src/dynamicMesh/meshSubsetHelper/meshSubsetHelper.C @@ -90,9 +90,13 @@ void Foam::meshSubsetHelper::correct(bool verbose) Foam::polyMesh::readUpdateState Foam::meshSubsetHelper::readUpdate() { - polyMesh::readUpdateState meshState = baseMesh_.readUpdate(); + const polyMesh::readUpdateState meshState = baseMesh_.readUpdate(); - if (meshState == polyMesh::TOPO_CHANGE || polyMesh::TOPO_PATCH_CHANGE) + if + ( + meshState == polyMesh::TOPO_CHANGE + || meshState == polyMesh::TOPO_PATCH_CHANGE + ) { correct(true); } -- GitLab