summaryrefslogtreecommitdiff
path: root/apps/adrian/cylinder2d/outflow_refinement
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-02-04 22:56:00 +0100
committerAdrian Kummerlaender2019-06-24 15:17:42 +0200
commit9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e (patch)
treead3d9379994185d569679d6586ed17aaf841c074 /apps/adrian/cylinder2d/outflow_refinement
parent27b0c949eda95d0fc97615acee899dd9b67bf781 (diff)
downloadgrid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar.gz
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar.bz2
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar.lz
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar.xz
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.tar.zst
grid_refinement_openlb-9d547d2dc7d2e96c16ee5cbf9ebf2f73a7a5233e.zip
Automatically apply prepareLattice for all grids
Diffstat (limited to 'apps/adrian/cylinder2d/outflow_refinement')
-rw-r--r--apps/adrian/cylinder2d/outflow_refinement/cylinder2d.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/adrian/cylinder2d/outflow_refinement/cylinder2d.cpp b/apps/adrian/cylinder2d/outflow_refinement/cylinder2d.cpp
index 7e506c1..f1e6fa9 100644
--- a/apps/adrian/cylinder2d/outflow_refinement/cylinder2d.cpp
+++ b/apps/adrian/cylinder2d/outflow_refinement/cylinder2d.cpp
@@ -309,9 +309,7 @@ int main(int argc, char* argv[])
fineOutflowGrid.getSuperGeometry().reset(refined);
}
- prepareLattice(coarseGrid);
- prepareLattice(fineOutflowGrid);
- prepareLattice(fineOutflowGrid2);
+ coarseGrid.forEachGrid(prepareLattice);
clout << "Total number of active cells: " << coarseGrid.getActiveVoxelN() << endl;
clout << "Starting simulation..." << endl;