From 581e3871ffe67f1afc91d448ec06f8edd23a8139 Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Tue, 3 Mar 2015 14:36:42 +0000 Subject: [PATCH] Removed try and catch from problem test files Reviewed by Gabriele and Johannes git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@14325 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- test/decoupled/1p/test_1pproblem.hh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test/decoupled/1p/test_1pproblem.hh b/test/decoupled/1p/test_1pproblem.hh index 33a4afbfef..b7a9509979 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_); } -- GitLab