From 44cef61dbe0f31256e2f33c6c01d7b691a3e88ab Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Thu, 30 May 2019 15:46:02 +0200 Subject: [PATCH] Clean-up after merge (duplicate stuff) --- .../polyhedralRefinement/polyhedralRefinement.C | 9 --------- .../prismatic2DRefinement/prismatic2DRefinement.C | 9 --------- .../refinement/refinement/refinement.C | 14 -------------- 3 files changed, 32 deletions(-) diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/polyhedralRefinement/polyhedralRefinement.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/polyhedralRefinement/polyhedralRefinement.C index 0d5f2db57..64862038f 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/polyhedralRefinement/polyhedralRefinement.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/polyhedralRefinement/polyhedralRefinement.C @@ -2055,15 +2055,6 @@ void Foam::polyhedralRefinement::setCellsToRefine } } - // Remove all cells that would exceed the maximum refinement level - forAll (refineCell, cellI) - { - if (refineCell[cellI] && (cellLevel_[cellI] + 1 > maxRefinementLevel_)) - { - refineCell[cellI] = false; - } - } - // Make sure that the refinement is face consistent (2:1 consistency) and // point consistent (4:1 consistency) if necessary diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/prismatic2DRefinement/prismatic2DRefinement.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/prismatic2DRefinement/prismatic2DRefinement.C index 7fa88a836..e6e3677d5 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/prismatic2DRefinement/prismatic2DRefinement.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/prismatic2DRefinement/prismatic2DRefinement.C @@ -2614,15 +2614,6 @@ void Foam::prismatic2DRefinement::setCellsToRefine } } - // Remove all cells that exceed the maximum refinement level - forAll (refineCell, cellI) - { - if (refineCell[cellI] && (cellLevel_[cellI] + 1 > maxRefinementLevel_)) - { - refineCell[cellI] = false; - } - } - // Make sure that the refinement is face consistent (2:1 consistency) and // point consistent (4:1 consistency) if necessary diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/refinement/refinement.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/refinement/refinement.C index 63e1dd1fe..43f709ef5 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/refinement/refinement.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/refinement/refinement/refinement.C @@ -1333,20 +1333,6 @@ bool Foam::refinement::changeTopology() const void Foam::refinement::setRefinement(polyTopoChange& ref) const { - // Make sure that the point levels are updated across coupled patches before - // setting refinement and unrefinement. Note: not sure why the sync is not - // performed correctly if I do it in updateMesh. This is a temporary - // solution, need to investigate in detail, but I assume something is not - // updated yet in that case. VV, 31/Jan/2018. - syncTools::syncPointList - ( - mesh_, - pointLevel_, - maxEqOp