Commit 581e3871 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

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
parent 27a5d9a5
......@@ -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_);
}
......
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