Commit eaf9a8de authored by Praetorius, Simon's avatar Praetorius, Simon

Merge branch 'issue/global_refine_adopted_grid' into 'develop'

global refinement should only be performed if flag INIT_MESH is set

See merge request !55
parents f45812bb c92fc60c
Pipeline #1432 passed with stage
in 25 minutes and 19 seconds
...@@ -44,13 +44,14 @@ void ProblemStat<Traits>::initialize( ...@@ -44,13 +44,14 @@ void ProblemStat<Traits>::initialize(
if (!grid_) if (!grid_)
warning("no grid created"); warning("no grid created");
int globalRefinements = 0; if (initFlag.isSet(INIT_MESH)) {
Parameters::get(gridName_ + "->global refinements", globalRefinements); int globalRefinements = 0;
if (globalRefinements > 0) { Parameters::get(gridName_ + "->global refinements", globalRefinements);
grid_->globalRefine(globalRefinements); if (globalRefinements > 0) {
grid_->globalRefine(globalRefinements);
}
} }
// create fespace // create fespace
if (globalBasis_) { if (globalBasis_) {
warning("globalBasis already created"); warning("globalBasis already created");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment