Commit 270bf861 authored by Philipp Nuske's avatar Philipp Nuske
Browse files

- boxspatialparams1p: forward declaration of SpatialParamsForchCoeff

- co2 Problems: the boundary IDs need to be initialized *before* intersectionToVertexBC_ can be built. Unclear why it was (most of the time) working before. 
Reviewed by Bernd


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9543 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 296cb801
......@@ -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) {
......
......@@ -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
{
......
......@@ -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);
......
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