Skip to content
Snippets Groups Projects
Commit c92fc60c authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

global refinement should only be performed if flag INIT_MESH is set

parent e034a097
Branches
Tags
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment