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 --- src/refinement/grid2D.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/refinement/grid2D.hh b/src/refinement/grid2D.hh index 9ca8aaf..4f76896 100644 --- a/src/refinement/grid2D.hh +++ b/src/refinement/grid2D.hh @@ -338,7 +338,12 @@ RefiningGrid2D& Grid2D::refine( _fineGrids.emplace_back( new RefiningGrid2D(*this, origin, extend)); - return *_fineGrids.back(); + RefiningGrid2D& fineGrid = *_fineGrids.back(); + + auto refinedOverlap = fineGrid.getRefinedOverlap(); + _geometry->reset(*refinedOverlap); + + return fineGrid; } } -- cgit v1.2.3