From 2dfcba1b8dd06eae8848fb79013570a23aec130c Mon Sep 17 00:00:00 2001 From: Benjamin Faigle <benjamin.faigle@posteo.de> Date: Mon, 11 Jul 2011 07:11:10 +0000 Subject: [PATCH] - variableclass (if h-adaptive) is now called with problem - variableclass tidied up, improved strucutre & docu for reconstruction of prim vars git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6185 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/decoupled/common/gridadapt.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dumux/decoupled/common/gridadapt.hh b/dumux/decoupled/common/gridadapt.hh index b53f3237b5..d9ebebe636 100644 --- a/dumux/decoupled/common/gridadapt.hh +++ b/dumux/decoupled/common/gridadapt.hh @@ -115,7 +115,7 @@ public: << coarsened_ << " to be coarsened." << std::endl; /**** 3) Put primary variables in a map *********/ - problem_.variables().storePrimVars(); + problem_.variables().storePrimVars(problem_); /**** 4) Adapt Grid and size of variable vectors *****/ problem_.grid().preAdapt(); @@ -130,7 +130,7 @@ public: problem_.variables().adaptVariableSize(problem_.variables().elementMapper().size()); /**** 5) (Re-)construct primary variables to new grid **/ - problem_.variables().reconstructPrimVars(); + problem_.variables().reconstructPrimVars(problem_); // delete markers in grid problem_.grid().postAdapt(); // adapt secondary variables @@ -218,7 +218,7 @@ public: * * @return levelMax_ maximum level for refinement */ - int getMaxLevel() const + const int getMaxLevel() const { return levelMax_; } @@ -227,7 +227,7 @@ public: * * @return levelMin_ minimum level for coarsening */ - int getMinLevel() const + const int getMinLevel() const { return levelMin_; } -- GitLab