summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-02-06 21:08:12 +0100
committerAdrian Kummerlaender2019-06-24 15:17:42 +0200
commit1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6 (patch)
tree3e980e17ab0d23763054dc26be4d62549cd0b436 /src
parent77869487e437b4050f98c28a24db82e1e83a872c (diff)
downloadgrid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar.gz
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar.bz2
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar.lz
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar.xz
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.tar.zst
grid_refinement_openlb-1c3a43c713e67446f0b5bc9dbbc6d04b5e2a61a6.zip
Automatically disable refined area in parent geometry
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;
}
}