summaryrefslogtreecommitdiff
path: root/apps/adrian
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-11 10:26:17 +0100
committerAdrian Kummerlaender2019-06-24 15:17:09 +0200
commit5a6c48a6d8ac139dbed3088e0e397cbb42a1f480 (patch)
tree3eb8efcabdb75aa3b2a4b7c6b6153123af45466a /apps/adrian
parent946cb3702e6baacec1faaeab9ad66dfd99320b55 (diff)
downloadgrid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar.gz
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar.bz2
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar.lz
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar.xz
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.tar.zst
grid_refinement_openlb-5a6c48a6d8ac139dbed3088e0e397cbb42a1f480.zip
Move distribution scaling factor to Coupler2D
Scaling factor is specific to the refinement method implemented by the coupler.
Diffstat (limited to 'apps/adrian')
-rw-r--r--apps/adrian/poiseuille2d/poiseuille2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/adrian/poiseuille2d/poiseuille2d.cpp b/apps/adrian/poiseuille2d/poiseuille2d.cpp
index b16a19b..e71e51e 100644
--- a/apps/adrian/poiseuille2d/poiseuille2d.cpp
+++ b/apps/adrian/poiseuille2d/poiseuille2d.cpp
@@ -188,7 +188,7 @@ int main(int argc, char* argv[])
prepareGeometry(coarseGrid->getConverter(), coarseGrid->getSuperGeometry());
const Vector<T,2> wantedFineExtend {3.0, 1.5};
- const Vector<T,2> fineOrigin = coarseGrid->alignLocationToGrid({0.8, (ly-wantedFineExtend[1])/2});
+ const Vector<T,2> fineOrigin = coarseGrid->alignOriginToGrid({0.8, (ly-wantedFineExtend[1])/2});
const Vector<T,2> fineExtend = coarseGrid->alignExtendToGrid(wantedFineExtend);
auto fineGrid = &coarseGrid->refine(fineOrigin, fineExtend);
@@ -222,7 +222,7 @@ int main(int argc, char* argv[])
createLocalBoundaryCondition2D<T, DESCRIPTOR>(fineSBoundaryCondition);
const Vector<T,2> wantedFineExtend2 {0.6, 0.4};
- const Vector<T,2> fineOrigin2 = fineGrid->alignLocationToGrid({1.05, (ly-wantedFineExtend2[1])/2});
+ const Vector<T,2> fineOrigin2 = fineGrid->alignOriginToGrid({1.05, (ly-wantedFineExtend2[1])/2});
const Vector<T,2> fineExtend2 = fineGrid->alignExtendToGrid(wantedFineExtend2);
auto fineGrid2 = &fineGrid->refine(fineOrigin2, fineExtend2);