From 24c97614296038b42f1ae0420a77ca3e8e67ff37 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 16 Nov 2020 10:32:36 +0100 Subject: [PATCH] COMP: silence warnings, fix transcription error for planeToFaceZone ENH: add construct from components STYLE: adjust action variable name for consistency --- .../planeToFaceZone/planeToFaceZone.C | 41 +++++++++++++------ .../planeToFaceZone/planeToFaceZone.H | 19 ++++++--- 2 files changed, 42 insertions(+), 18 deletions(-) diff --git a/src/meshTools/sets/faceZoneSources/planeToFaceZone/planeToFaceZone.C b/src/meshTools/sets/faceZoneSources/planeToFaceZone/planeToFaceZone.C index e1b8a87274..05017c2c57 100644 --- a/src/meshTools/sets/faceZoneSources/planeToFaceZone/planeToFaceZone.C +++ b/src/meshTools/sets/faceZoneSources/planeToFaceZone/planeToFaceZone.C @@ -73,12 +73,12 @@ Foam::topoSetSource::addToUsageTable Foam::planeToFaceZone::usage_ const Foam::Enum < - Foam::planeToFaceZone::faceZoneAction + Foam::planeToFaceZone::faceAction > -Foam::planeToFaceZone::faceZoneActionNames_ +Foam::planeToFaceZone::faceActionNames_ ({ - { faceZoneAction::ALL, "all" }, - { faceZoneAction::CLOSEST, "closest" }, + { faceAction::ALL, "all" }, + { faceAction::CLOSEST, "closest" }, }); @@ -112,14 +112,14 @@ void Foam::planeToFaceZone::combine(faceZoneSet& fzSet, const bool add) const patch.coupled() && cellIsAbovePlane[mesh_.faceOwner()[facei]]; } } - syncTools::syncFaceList(mesh_, faceIsOnPlane, notEqualOp()); + syncTools::syncFaceList(mesh_, faceIsOnPlane, xorEqOp()); // Convert marked faces to a list of indices labelList newSetFaces(findIndices(faceIsOnPlane, true)); // If constructing a single contiguous set, remove all faces except those // connected to the contiguous region closest to the specified point - if (option_ == faceZoneAction::CLOSEST) + if (option_ == faceAction::CLOSEST) { // Step 1: Get locally contiguous regions for the new face set and the // total number of regions across all processors. @@ -188,7 +188,7 @@ void Foam::planeToFaceZone::combine(faceZoneSet& fzSet, const bool add) const ( mesh_, meshEdgeRegions, - globalMeshData::ListPlusEqOp(), + ListOps::appendEqOp