From b735b5829f061696957342e02a2ad45586f260b6 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Tue, 16 Jan 2018 15:02:40 +0100 Subject: [PATCH] First part of compilation fixes for polyhedralRefinement class Still need to reorganize faceRemover engine such that it works with polyTopoChange alongside (preferably) or instead of directTopoChange --- src/dynamicMesh/dynamicMesh/Make/files | 3 + .../polyhedralRefinement.C | 220 ++++++++++++------ .../polyhedralRefinement.H | 40 ++-- 3 files changed, 171 insertions(+), 92 deletions(-) diff --git a/src/dynamicMesh/dynamicMesh/Make/files b/src/dynamicMesh/dynamicMesh/Make/files index 3305c6e7e..557e38147 100644 --- a/src/dynamicMesh/dynamicMesh/Make/files +++ b/src/dynamicMesh/dynamicMesh/Make/files @@ -37,6 +37,9 @@ $(slidingInterface)/decoupleSlidingInterface.C repatchCoverage = $(polyMeshModifiers)/repatchCoverage $(repatchCoverage)/repatchCoverage.C +polyhedralRefinement = $(polyMeshModifiers)/polyhedralRefinement +$(polyhedralRefinement)/polyhedralRefinement.C + polyTopoChange/polyTopoChange/polyTopoChange.C polyTopoChange/polyTopoChange/actions/topoAction/topoActions.C diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/polyhedralRefinement/polyhedralRefinement.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/polyhedralRefinement/polyhedralRefinement.C index b12f33d8e..41464f4bf 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/polyhedralRefinement/polyhedralRefinement.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/polyhedralRefinement/polyhedralRefinement.C @@ -36,6 +36,12 @@ Notes #include "foamTime.H" #include "primitiveMesh.H" #include "polyTopoChange.H" +#include "syncTools.H" +#include "meshTools.H" +#include "cellSet.H" +#include "faceSet.H" +#include "pointSet.H" +#include "mapPolyMesh.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -91,7 +97,7 @@ Foam::label Foam::polyhedralRefinement::getAnchorLevel if (f.size() <= 3) { - return pointLevel_[f[findMinMaxLevel(f, maxOp