Skip to content
Snippets Groups Projects
Commit e2eaac5b authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Throw if a non-existing discretization error mode is requested

parent b34fb200
No related branches found
No related tags found
No related merge requests found
......@@ -452,6 +452,7 @@ void measureEOC(const std::shared_ptr<GridType> grid,
default:
DUNE_THROW(NotImplemented, "Order '" << order << "' is not implemented");
}
return; // Success
}
if (parameterSet.get<std::string>("discretizationErrorMode")=="analytical")
......@@ -473,7 +474,10 @@ void measureEOC(const std::shared_ptr<GridType> grid,
default:
DUNE_THROW(NotImplemented, "Order '" << order << "' is not implemented");
}
return; // Success
}
DUNE_THROW(NotImplemented, "Unknown discretization error mode encountered!");
}
int main (int argc, char *argv[]) try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment