diff --git a/test/decoupled/1p/test_1pproblem.hh b/test/decoupled/1p/test_1pproblem.hh index 33a4afbfeff86273b40c382ddebf5fc5cde035ec..b7a9509979e4ae796e8993b5190e90d780c129f9 100644 --- a/test/decoupled/1p/test_1pproblem.hh +++ b/test/decoupled/1p/test_1pproblem.hh @@ -109,23 +109,12 @@ public: ParentType(gridView), velocity_(*this) { delta_ = 1e-3 ; - - try - { + if (ParameterTree::tree().hasKey("Problem.Delta")) - delta_ = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, Scalar, Problem, Delta); + delta_ = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, Scalar, Problem, Delta); int numRefine; numRefine = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, int, Grid, NumRefine); GridCreator::grid().globalRefine(numRefine); - } - catch (Dumux::ParameterException &e) { - std::cerr << e << ". Abort!\n"; - exit(1) ; - } - catch (...) { - std::cerr << "Unknown exception thrown!\n"; - exit(1); - } this->spatialParams().initialize(delta_); }