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

global refinement should only be performed if flag INIT_MESH is set

parent e034a097
Pipeline #1422 passed with stage
in 29 minutes and 35 seconds
......@@ -43,13 +43,14 @@ void ProblemStat<Traits>::initialize(
if (!grid_)
warning("no grid created");
int globalRefinements = 0;
Parameters::get(gridName_ + "->global refinements", globalRefinements);
if (globalRefinements > 0) {
grid_->globalRefine(globalRefinements);
if (initFlag.isSet(INIT_MESH)) {
int globalRefinements = 0;
Parameters::get(gridName_ + "->global refinements", globalRefinements);
if (globalRefinements > 0) {
grid_->globalRefine(globalRefinements);
}
}
// create fespace
if (globalBasis_) {
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