diff --git a/dumux/material/spatialparams/boxspatialparams1p.hh b/dumux/material/spatialparams/boxspatialparams1p.hh index a5c001780eb659a77002a78026a251b3363ffe26..3cfffbc7a0f2b28aad404d5d05df517e057b7d9d 100644 --- a/dumux/material/spatialparams/boxspatialparams1p.hh +++ b/dumux/material/spatialparams/boxspatialparams1p.hh @@ -34,9 +34,10 @@ #include <dune/common/fmatrix.hh> namespace Dumux { -// forward declation of property tags +// forward declaration of property tags namespace Properties { NEW_PROP_TAG(SpatialParams); +NEW_PROP_TAG(SpatialParamsForchCoeff); } /*! @@ -175,7 +176,6 @@ public: * \param fvElemGeom The current finite volume geometry of the element * \param scvIdx The index sub-control volume face where the * intrinsic velocity ought to be calculated. - * */ Scalar forchCoeff(const Element &element, const FVElementGeometry &fvElemGeom, @@ -184,6 +184,7 @@ public: try { const Scalar forchCoeff = GET_PARAM_FROM_GROUP(TypeTag, Scalar, SpatialParams, ForchCoeff); + return forchCoeff ; } catch (Dumux::ParameterException &e) { diff --git a/test/boxmodels/co2/heterogeneousproblem.hh b/test/boxmodels/co2/heterogeneousproblem.hh index bd5397f5e9c771efa4b70cb92f485c4e527b1691..4f4c5c62eef3a5aeab8c9d1b102381d0817598c9 100644 --- a/test/boxmodels/co2/heterogeneousproblem.hh +++ b/test/boxmodels/co2/heterogeneousproblem.hh @@ -178,7 +178,13 @@ public: */ HeterogeneousProblem(TimeManager &timeManager, const GridView &gridView) - : ParentType(timeManager, GridCreator::grid().leafView()), intersectionToVertexBC_(*this) + : ParentType(timeManager, GridCreator::grid().leafView()), + //Boundary Id Setup: + injectionTop_(1), + injectionBottom_(2), + dirichletBoundary_(3), + noFlowBoundary_(4), + intersectionToVertexBC_(*this) { try { diff --git a/test/boxmodels/co2ni/heterogeneousproblemni.hh b/test/boxmodels/co2ni/heterogeneousproblemni.hh index 5f18139ac964cbc738b064ebad07bfaf3954e381..e84a1b508c3fdf6affbd9667c7ce5003bc058af1 100644 --- a/test/boxmodels/co2ni/heterogeneousproblemni.hh +++ b/test/boxmodels/co2ni/heterogeneousproblemni.hh @@ -174,7 +174,13 @@ public: */ HeterogeneousProblem(TimeManager &timeManager, const GridView &gridView) - : ParentType(timeManager, GridCreator::grid().leafView()), intersectionToVertexBC_(*this) + : ParentType(timeManager, GridCreator::grid().leafView()), + //Boundary Id Setup: + injectionTop_ (1), + injectionBottom_(2), + dirichletBoundary_(3), + noFlowBoundary_(4), + intersectionToVertexBC_(*this) { try { @@ -209,12 +215,6 @@ public: * - Overwriting on command line not possible */ - //Boundary Id Setup: - injectionTop_ = 1; - injectionBottom_ = 2; - dirichletBoundary_ = 3; - noFlowBoundary_ = 4; - GridPointer *gridPtr = &GridCreator::gridPtr(); this->spatialParams().setParams(gridPtr);