From 1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 6 Feb 2019 21:08:12 +0100 Subject: Automatically disable refined area in parent geometry --- apps/adrian/cylinder2d/optimized_grid/cylinder2d.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'apps/adrian/cylinder2d/optimized_grid') diff --git a/apps/adrian/cylinder2d/optimized_grid/cylinder2d.cpp b/apps/adrian/cylinder2d/optimized_grid/cylinder2d.cpp index d516394..b4c3689 100644 --- a/apps/adrian/cylinder2d/optimized_grid/cylinder2d.cpp +++ b/apps/adrian/cylinder2d/optimized_grid/cylinder2d.cpp @@ -113,14 +113,6 @@ void prepareGeometry(Grid2D& grid, Vector origin, Vector clout << "Prepare Geometry ... OK" << std::endl; } -void disableRefinedArea(Grid2D& coarseGrid, - RefiningGrid2D& fineGrid) -{ - auto& sGeometry = coarseGrid.getSuperGeometry(); - auto refinedOverlap = fineGrid.getRefinedOverlap(); - sGeometry.reset(*refinedOverlap); -} - void prepareLattice(Grid2D& grid) { OstreamManager clout(std::cout,"prepareLattice"); @@ -297,21 +289,18 @@ void setupRefinement(Grid2D& coarseGrid, Vector domainOrigin, auto& fineGrid = coarseGrid.refine(fineOrigin, fineExtend); prepareGeometry(fineGrid, domainOrigin, domainExtend); - disableRefinedArea(coarseGrid, fineGrid); const Vector fineExtend2 {5*cylinderD, fineGrid.getExtend()[1]-2*coarseDeltaX}; const Vector fineOrigin2 {1*cylinderD, (domainExtend[1]-fineExtend2[1])/2}; auto& fineGrid2 = fineGrid.refine(fineOrigin2, fineExtend2); prepareGeometry(fineGrid2, domainOrigin, domainExtend); - disableRefinedArea(fineGrid, fineGrid2); const Vector fineExtend3 {1.25*cylinderD, 1.25*cylinderD}; const Vector fineOrigin3 {cylinderX-fineExtend3[0]/2, cylinderY-fineExtend3[1]/2}; auto& fineGrid3 = fineGrid2.refine(fineOrigin3, fineExtend3); prepareGeometry(fineGrid3, domainOrigin, domainExtend); - disableRefinedArea(fineGrid2, fineGrid3); } int main(int argc, char* argv[]) -- cgit v1.2.3