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,12 +44,13 @@ void ProblemStat<Traits>::initialize(
if (!grid_)
warning("no grid created");
if (initFlag.isSet(INIT_MESH)) {
int globalRefinements = 0;
Parameters::get(gridName_ + "->global refinements", globalRefinements);
if (globalRefinements > 0) {
grid_->globalRefine(globalRefinements);
}
}
// create fespace
if (globalBasis_) {
......
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