Commit 6110a76b authored by Beatrix Becker's avatar Beatrix Becker
Browse files

[sequential pressure-module] make EntryType, rhs and matrix protected instead...

[sequential pressure-module] make EntryType, rhs and matrix protected instead of private to use it in derived class
This is similar to what is done in the non-adaptive pressure module.
parent b74229a4
...@@ -75,17 +75,19 @@ template<class TypeTag> class FVPressure2PAdaptive: public FVPressure2P<TypeTag> ...@@ -75,17 +75,19 @@ template<class TypeTag> class FVPressure2PAdaptive: public FVPressure2P<TypeTag>
wPhaseIdx = Indices::wPhaseIdx, nPhaseIdx = Indices::nPhaseIdx, numPhases = GET_PROP_VALUE(TypeTag, NumPhases) wPhaseIdx = Indices::wPhaseIdx, nPhaseIdx = Indices::nPhaseIdx, numPhases = GET_PROP_VALUE(TypeTag, NumPhases)
}; };
enum
{
rhs = ParentType::rhs, matrix = ParentType::matrix
};
typedef typename GridView::Intersection Intersection; typedef typename GridView::Intersection Intersection;
typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition; typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition;
typedef Dune::FieldMatrix<Scalar, dim, dim> FieldMatrix; typedef Dune::FieldMatrix<Scalar, dim, dim> FieldMatrix;
protected:
//! \cond \private
typedef typename ParentType::EntryType EntryType; typedef typename ParentType::EntryType EntryType;
enum
{
rhs = ParentType::rhs, matrix = ParentType::matrix
};
//! \endcond
public: public:
// Function which calculates the flux entry // Function which calculates the flux entry
......
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