summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/refinement/grid2D.hh7
1 files changed, 6 insertions, 1 deletions
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<T,DESCRIPTOR>& Grid2D<T,DESCRIPTOR>::refine(
_fineGrids.emplace_back(
new RefiningGrid2D<T,DESCRIPTOR>(*this, origin, extend));
- return *_fineGrids.back();
+ RefiningGrid2D<T,DESCRIPTOR>& fineGrid = *_fineGrids.back();
+
+ auto refinedOverlap = fineGrid.getRefinedOverlap();
+ _geometry->reset(*refinedOverlap);
+
+ return fineGrid;
}
}