Skip to content
Snippets Groups Projects
Commit 8a10ceeb authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

box 2pni: remove unused typedefs and enums, beautify

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7289 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 585f75ed
No related branches found
No related tags found
No related merge requests found
...@@ -53,27 +53,17 @@ template <class TypeTag> ...@@ -53,27 +53,17 @@ template <class TypeTag>
class TwoPNIFluxVariables : public TwoPFluxVariables<TypeTag> class TwoPNIFluxVariables : public TwoPFluxVariables<TypeTag>
{ {
typedef TwoPFluxVariables<TypeTag> ParentType; typedef TwoPFluxVariables<TypeTag> ParentType;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(VolumeVariables)) VolumeVariables;
typedef typename GridView::ctype CoordScalar;
typedef typename GridView::template Codim<0>::Entity Element;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(ElementVolumeVariables)) ElementVolumeVariables; typedef typename GET_PROP_TYPE(TypeTag, PTAG(ElementVolumeVariables)) ElementVolumeVariables;
enum {
dim = GridView::dimension,
dimWorld = GridView::dimensionworld,
numPhases = GET_PROP_VALUE(TypeTag, PTAG(NumPhases))
};
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FVElementGeometry)) FVElementGeometry; typedef typename GET_PROP_TYPE(TypeTag, PTAG(FVElementGeometry)) FVElementGeometry;
typedef typename FVElementGeometry::SubControlVolume SCV;
typedef typename FVElementGeometry::SubControlVolumeFace SCVFace;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
typedef typename GridView::template Codim<0>::Entity Element;
enum { dimWorld = GridView::dimensionworld };
typedef typename GridView::ctype CoordScalar;
typedef Dune::FieldVector<CoordScalar, dimWorld> Vector; typedef Dune::FieldVector<CoordScalar, dimWorld> Vector;
public: public:
......
...@@ -52,35 +52,26 @@ namespace Dumux ...@@ -52,35 +52,26 @@ namespace Dumux
template<class TypeTag> template<class TypeTag>
class TwoPNILocalResidual : public TwoPLocalResidual<TypeTag> class TwoPNILocalResidual : public TwoPLocalResidual<TypeTag>
{ {
typedef TwoPNILocalResidual<TypeTag> ThisType;
typedef TwoPLocalResidual<TypeTag> ParentType; typedef TwoPLocalResidual<TypeTag> ParentType;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(PrimaryVariables)) PrimaryVariables; typedef typename GET_PROP_TYPE(TypeTag, PTAG(PrimaryVariables)) PrimaryVariables;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(VolumeVariables)) VolumeVariables;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluxVariables)) FluxVariables;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(ElementVolumeVariables)) ElementVolumeVariables;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(TwoPIndices)) Indices; typedef typename GET_PROP_TYPE(TypeTag, PTAG(TwoPIndices)) Indices;
enum { enum {
dim = GridView::dimension,
dimWorld = GridView::dimensionworld,
numPhases = GET_PROP_VALUE(TypeTag, PTAG(NumPhases)), numPhases = GET_PROP_VALUE(TypeTag, PTAG(NumPhases)),
temperatureIdx = Indices::temperatureIdx, temperatureIdx = Indices::temperatureIdx,
energyEqIdx = Indices::energyEqIdx, energyEqIdx = Indices::energyEqIdx,
wPhaseIdx = Indices::wPhaseIdx, wPhaseIdx = Indices::wPhaseIdx,
nPhaseIdx = Indices::nPhaseIdx nPhaseIdx = Indices::nPhaseIdx
}; };
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
enum { dimWorld = GridView::dimensionworld };
typedef typename GET_PROP_TYPE(TypeTag, PTAG(VolumeVariables)) VolumeVariables; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluxVariables)) FluxVariables;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(ElementVolumeVariables)) ElementVolumeVariables;
typedef Dune::FieldVector<Scalar, dimWorld> Vector; typedef Dune::FieldVector<Scalar, dimWorld> Vector;
public: public:
......
...@@ -42,29 +42,19 @@ namespace Dumux ...@@ -42,29 +42,19 @@ namespace Dumux
template <class TypeTag> template <class TypeTag>
class TwoPNIVolumeVariables : public TwoPVolumeVariables<TypeTag> class TwoPNIVolumeVariables : public TwoPVolumeVariables<TypeTag>
{ {
typedef TwoPVolumeVariables<TypeTag> ParentType;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FVElementGeometry)) FVElementGeometry; typedef typename GET_PROP_TYPE(TypeTag, PTAG(FVElementGeometry)) FVElementGeometry;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidSystem)) FluidSystem;
typedef typename GridView::template Codim<0>::Entity Element; typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidState)) FluidState;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(PrimaryVariables)) PrimaryVariables;
enum { enum { numPhases = GET_PROP_VALUE(TypeTag, PTAG(NumPhases)) };
dim = GridView::dimension,
dimWorld = GridView::dimensionworld,
numPhases = GET_PROP_VALUE(TypeTag, PTAG(NumPhases))
};
typedef typename GET_PROP_TYPE(TypeTag, PTAG(TwoPIndices)) Indices; typedef typename GET_PROP_TYPE(TypeTag, PTAG(TwoPIndices)) Indices;
enum { temperatureIdx = Indices::temperatureIdx }; enum { temperatureIdx = Indices::temperatureIdx };
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidSystem)) FluidSystem; typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidState)) FluidState; typedef typename GridView::template Codim<0>::Entity Element;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(PrimaryVariables)) PrimaryVariables;
typedef Dune::FieldVector<Scalar, numPhases> PhasesVector;
public: public:
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment