Commit 27a5d9a5 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Removed try and catch from 2p2c/injectionproblem.hh

Reviewed by Gabriele and Johannes



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@14324 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 8551920d
......@@ -142,8 +142,6 @@ public:
InjectionProblem(TimeManager &timeManager,
const GridView &gridView)
: ParentType(timeManager, GridCreator::grid().leafGridView())
{
try
{
nTemperature_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NTemperature);
nPressure_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NPressure);
......@@ -154,15 +152,6 @@ public:
temperature_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.InitialTemperature);
depthBOR_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.DepthBOR);
name_ = GET_RUNTIME_PARAM(TypeTag, std::string, Problem.Name);
}
catch (Dumux::ParameterException &e) {
std::cerr << e << ". Abort!\n";
exit(1) ;
}
catch (...) {
std::cerr << "Unknown exception thrown!\n";
exit(1);
}
/* Alternative syntax:
* typedef typename GET_PROP(TypeTag, ParameterTree) ParameterTree;
......
Supports Markdown
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