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
...@@ -143,8 +143,6 @@ public: ...@@ -143,8 +143,6 @@ public:
const GridView &gridView) const GridView &gridView)
: ParentType(timeManager, GridCreator::grid().leafGridView()) : ParentType(timeManager, GridCreator::grid().leafGridView())
{ {
try
{
nTemperature_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NTemperature); nTemperature_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NTemperature);
nPressure_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NPressure); nPressure_ = GET_RUNTIME_PARAM(TypeTag, int, Problem.NPressure);
pressureLow_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.PressureLow); pressureLow_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.PressureLow);
...@@ -154,15 +152,6 @@ public: ...@@ -154,15 +152,6 @@ public:
temperature_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.InitialTemperature); temperature_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.InitialTemperature);
depthBOR_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.DepthBOR); depthBOR_ = GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.DepthBOR);
name_ = GET_RUNTIME_PARAM(TypeTag, std::string, Problem.Name); 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: /* Alternative syntax:
* typedef typename GET_PROP(TypeTag, ParameterTree) ParameterTree; * 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