diff --git a/dumux/boxmodels/2p2c/2p2cfluxvariables.hh b/dumux/boxmodels/2p2c/2p2cfluxvariables.hh index 0981385db1bd4d8702c042d6b4cafdf92421a7cb..af07c67a7c87998f143d49384a143f075fda4d81 100644 --- a/dumux/boxmodels/2p2c/2p2cfluxvariables.hh +++ b/dumux/boxmodels/2p2c/2p2cfluxvariables.hh @@ -76,7 +76,6 @@ class TwoPTwoCFluxVariables typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry; typedef typename FVElementGeometry::SubControlVolumeFace SCVFace; - typedef typename FVElementGeometry::BoundaryFace BoundaryFace; public: /* diff --git a/dumux/boxmodels/2p2cni/2p2cnifluxvariables.hh b/dumux/boxmodels/2p2cni/2p2cnifluxvariables.hh index 00e62b05dca7db60e28fbbba425ec2835e18a7ce..e79efec29b4064405e4a2609097dd47ba91d96d8 100644 --- a/dumux/boxmodels/2p2cni/2p2cnifluxvariables.hh +++ b/dumux/boxmodels/2p2cni/2p2cnifluxvariables.hh @@ -63,9 +63,7 @@ class TwoPTwoCNIFluxVariables : public TwoPTwoCFluxVariables<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, 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<Scalar, dimWorld> Vector; public: /* @@ -137,9 +135,10 @@ protected: problem.spatialParameters().matrixHeatFlux(tmp, *this, elemVolVars, - face, + temperatureGrad_, element, - this->fvGeom_); + this->fvGeom_, + scvfIdx_); // project the heat flux vector on the face's normal vector normalMatrixHeatFlux_ = tmp*face.normal; diff --git a/dumux/boxmodels/2pni/2pnivolumevariables.hh b/dumux/boxmodels/2pni/2pnivolumevariables.hh index 5f8a08235f3c5f3bcadd2e4a624eb04a48da3b70..e954f871d0455b71063cd5249df9271d84529975 100644 --- a/dumux/boxmodels/2pni/2pnivolumevariables.hh +++ b/dumux/boxmodels/2pni/2pnivolumevariables.hh @@ -48,7 +48,6 @@ class TwoPNIVolumeVariables : public TwoPVolumeVariables<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; typedef typename GET_PROP_TYPE(TypeTag, FluidState) FluidState; typedef typename GET_PROP_TYPE(TypeTag, PrimaryVariables) PrimaryVariables; - enum { numPhases = GET_PROP_VALUE(TypeTag, NumPhases) }; typedef typename GET_PROP_TYPE(TypeTag, TwoPIndices) Indices; enum { temperatureIdx = Indices::temperatureIdx }; diff --git a/dumux/boxmodels/MpNc/MpNcindices.hh b/dumux/boxmodels/MpNc/MpNcindices.hh index 9f20607021366d5394f130eff1a8a2563e7f286b..146e39d53ebb8d3e85d13029cc74af24305ef8e8 100644 --- a/dumux/boxmodels/MpNc/MpNcindices.hh +++ b/dumux/boxmodels/MpNc/MpNcindices.hh @@ -47,7 +47,6 @@ struct MPNCIndices : { private: enum { enableEnergy = GET_PROP_VALUE(TypeTag, EnableEnergy) }; - enum { enableDiffusion = GET_PROP_VALUE(TypeTag, EnableDiffusion) }; enum { enableKinetic = GET_PROP_VALUE(TypeTag, EnableKinetic) }; //mass transfer enum { enableKineticEnergy = GET_PROP_VALUE(TypeTag, EnableKineticEnergy) }; // energy transfer @@ -55,7 +54,6 @@ private: typedef MPNCEnergyIndices<BasePVOffset + MassIndices::NumPrimaryVars, enableEnergy, enableKineticEnergy> EnergyIndices; typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; - enum { numComponents = FluidSystem::numComponents }; enum { numPhases = FluidSystem::numPhases }; public: diff --git a/dumux/boxmodels/MpNc/MpNclocalresidual.hh b/dumux/boxmodels/MpNc/MpNclocalresidual.hh index 3fa6a8ebae1fc9765628b0cbb9aa1bac707687db..d90de9a009866ababd74256e7927ee449a43f9b9 100644 --- a/dumux/boxmodels/MpNc/MpNclocalresidual.hh +++ b/dumux/boxmodels/MpNc/MpNclocalresidual.hh @@ -76,9 +76,7 @@ protected: typedef typename GridView::template Codim<0>::Entity Element; typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry; - typedef typename GridView::IntersectionIterator IntersectionIterator; - typedef typename GridView::CollectiveCommunication CollectiveCommunication; typedef typename GET_PROP_TYPE(TypeTag, PrimaryVariables) PrimaryVariables; typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables; diff --git a/dumux/boxmodels/MpNc/MpNcvtkwriter.hh b/dumux/boxmodels/MpNc/MpNcvtkwriter.hh index 0b14593474daa9024aa1ae66756bfef02282707f..ce7875f7f78a787741252a60fd9219760782e553 100644 --- a/dumux/boxmodels/MpNc/MpNcvtkwriter.hh +++ b/dumux/boxmodels/MpNc/MpNcvtkwriter.hh @@ -47,7 +47,6 @@ class MPNCVtkWriter typedef typename GET_PROP_TYPE(TypeTag, Problem) Problem; typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; - enum { dim = GridView::dimension }; typedef typename GridView::template Codim<0>::Entity Element; typedef typename GridView::template Codim<0>::Iterator ElementIterator; diff --git a/dumux/boxmodels/MpNc/MpNcvtkwritercommon.hh b/dumux/boxmodels/MpNc/MpNcvtkwritercommon.hh index f34369b18905d4bdcd7b68640614d28e9ebef3b4..6a96a6974147cd9efdae8aa2428dec51a76b9ef2 100644 --- a/dumux/boxmodels/MpNc/MpNcvtkwritercommon.hh +++ b/dumux/boxmodels/MpNc/MpNcvtkwritercommon.hh @@ -68,7 +68,6 @@ class MPNCVtkWriterCommon : public MPNCVtkWriterModule<TypeTag> enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) }; - enum { velocityAveragingInModel = GET_PROP_VALUE(TypeTag, VelocityAveragingInModel) }; typedef Dune::FieldVector<Scalar, dim> VelocityVector; typedef Dune::BlockVector<VelocityVector> VelocityField; diff --git a/dumux/boxmodels/MpNc/diffusion/diffusion.hh b/dumux/boxmodels/MpNc/diffusion/diffusion.hh index 5ab8ac479fecebed95270b9a0123fb0294eb05d1..6e66c28f199e419b1c277b939b686d63a5506ab6 100644 --- a/dumux/boxmodels/MpNc/diffusion/diffusion.hh +++ b/dumux/boxmodels/MpNc/diffusion/diffusion.hh @@ -37,9 +37,7 @@ class MPNCDiffusion typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; - enum { numPhases = GET_PROP_VALUE(TypeTag, NumPhases) }; enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents)}; - enum { enableKinetic= GET_PROP_VALUE(TypeTag, EnableKinetic)}; enum { gPhaseIdx = FluidSystem::gPhaseIdx }; enum { lPhaseIdx = FluidSystem::lPhaseIdx }; diff --git a/dumux/boxmodels/MpNc/energy/MpNcvtkwriterenergy.hh b/dumux/boxmodels/MpNc/energy/MpNcvtkwriterenergy.hh index 2d247ade3a6089ef47d7a06b277dc57f64f33a51..98ea06948a5211d910e43bb44d473427d572416c 100644 --- a/dumux/boxmodels/MpNc/energy/MpNcvtkwriterenergy.hh +++ b/dumux/boxmodels/MpNc/energy/MpNcvtkwriterenergy.hh @@ -63,12 +63,9 @@ class MPNCVtkWriterEnergy : public MPNCVtkWriterModule<TypeTag> typedef typename GridView::template Codim<0>::Entity Element; enum { dim = GridView::dimension }; - enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; typedef typename ParentType::ScalarBuffer ScalarBuffer; typedef typename ParentType::PhaseBuffer PhaseBuffer; - typedef typename ParentType::ComponentBuffer ComponentBuffer; - typedef typename ParentType::PhaseComponentBuffer PhaseComponentBuffer; public: MPNCVtkWriterEnergy(const Problem &problem) @@ -150,12 +147,9 @@ class MPNCVtkWriterEnergy<TypeTag, /* enableEnergy = */ true, /* enableKineticEn enum { dim = GridView::dimension }; enum { numPhases = GET_PROP_VALUE(TypeTag, NumPhases) }; - enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; typedef typename ParentType::ScalarBuffer ScalarBuffer; typedef typename ParentType::PhaseBuffer PhaseBuffer; - typedef typename ParentType::ComponentBuffer ComponentBuffer; - typedef typename ParentType::PhaseComponentBuffer PhaseComponentBuffer; public: diff --git a/dumux/boxmodels/MpNc/mass/MpNcindicesmass.hh b/dumux/boxmodels/MpNc/mass/MpNcindicesmass.hh index 8d5753fefc4ca6d0b88eede490eb14300133b189..9ab81d0666b29c6d8e0780b453167005cb01d0d5 100644 --- a/dumux/boxmodels/MpNc/mass/MpNcindicesmass.hh +++ b/dumux/boxmodels/MpNc/mass/MpNcindicesmass.hh @@ -44,7 +44,6 @@ class MPNCMassIndices "No kinetic mass transfer module included, " "but kinetic mass transfer enabled."); - enum { numPhases = GET_PROP_VALUE(TypeTag, NumPhases) }; enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; public: diff --git a/dumux/boxmodels/MpNc/mass/MpNclocalresidualmass.hh b/dumux/boxmodels/MpNc/mass/MpNclocalresidualmass.hh index b730a499d867f25ba6837a850c0b9877ffb2f67c..8ec88dcfe8d0cff6b0d15c7313e928ecdfb5ba51 100644 --- a/dumux/boxmodels/MpNc/mass/MpNclocalresidualmass.hh +++ b/dumux/boxmodels/MpNc/mass/MpNclocalresidualmass.hh @@ -236,7 +236,6 @@ class MPNCLocalResidualMass enum { numPhases = GET_PROP_VALUE(TypeTag, NumPhases) }; enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; enum { conti0EqIdx = Indices::conti0EqIdx }; - enum { numEnergyEqs = Indices::NumPrimaryEnergyVars}; typedef typename Dune::FieldVector<Scalar, numComponents> ComponentVector; diff --git a/dumux/boxmodels/MpNc/mass/MpNcvtkwritermass.hh b/dumux/boxmodels/MpNc/mass/MpNcvtkwritermass.hh index 2a5b14097bf72f792945c32168d2bd01e72eeaa3..528140c33a12dac9c6815f2cf3dd075497e15038 100644 --- a/dumux/boxmodels/MpNc/mass/MpNcvtkwritermass.hh +++ b/dumux/boxmodels/MpNc/mass/MpNcvtkwritermass.hh @@ -64,10 +64,7 @@ class MPNCVtkWriterMass : public MPNCVtkWriterModule<TypeTag> enum { numComponents = GET_PROP_VALUE(TypeTag, NumComponents) }; bool fugacityOutput_; - typedef typename ParentType::ScalarBuffer ScalarBuffer; - typedef typename ParentType::PhaseBuffer PhaseBuffer; typedef typename ParentType::ComponentBuffer ComponentBuffer; - typedef typename ParentType::PhaseComponentBuffer PhaseComponentBuffer; public: diff --git a/dumux/boxmodels/common/boxboundaryvariables.hh b/dumux/boxmodels/common/boxboundaryvariables.hh index 9bfd0658c0c5f7d12e1cc79309e6bbfaaca7ae4b..0680e4142a0b07dcde4561c5b17ee18077a0db6e 100644 --- a/dumux/boxmodels/common/boxboundaryvariables.hh +++ b/dumux/boxmodels/common/boxboundaryvariables.hh @@ -54,7 +54,6 @@ class BoxBoundaryVariables : public GET_PROP_TYPE(TypeTag, PTAG(FluxVariables)) typedef typename FVElementGeometry::BoundaryFace BoundaryFace; typedef typename GridView::template Codim<0>::Entity Element; - enum { dim = GridView::dimension }; public: BoxBoundaryVariables(const Problem &problem, diff --git a/dumux/linear/overlappingbcrsmatrix.hh b/dumux/linear/overlappingbcrsmatrix.hh index 9c4f4194d14cb56dec7b3c62f735d5365eb24525..9604e832b89d50a507a26b131cd6d95efda74425 100644 --- a/dumux/linear/overlappingbcrsmatrix.hh +++ b/dumux/linear/overlappingbcrsmatrix.hh @@ -63,10 +63,8 @@ private: typedef std::vector<std::set<ColIndex> > Entries; public: - typedef typename ParentType::RowIterator RowIterator; typedef typename ParentType::ColIterator ColIterator; typedef typename ParentType::ConstColIterator ConstColIterator; - typedef typename ParentType::field_type field_type; typedef typename ParentType::block_type block_type; diff --git a/dumux/linear/overlappingblockvector.hh b/dumux/linear/overlappingblockvector.hh index 8f818331a42184c922c71a7ca3e1d41d93809cd7..4b1a3f939223541ff28bdf29e40b62bfb482ffaf 100644 --- a/dumux/linear/overlappingblockvector.hh +++ b/dumux/linear/overlappingblockvector.hh @@ -50,7 +50,6 @@ class OverlappingBlockVector typedef typename Overlap::Index RowIndex; typedef typename Overlap::ProcessRank ProcessRank; typedef typename Overlap::PeerSet PeerSet; - typedef typename Overlap::ForeignOverlapWithPeer ForeignOverlapWithPeer; typedef typename Overlap::DomesticOverlapWithPeer DomesticOverlapWithPeer; typedef typename ParentType::field_type Scalar; diff --git a/dumux/linear/overlappingpreconditioner.hh b/dumux/linear/overlappingpreconditioner.hh index d5c1463b3de9f4bc85bc945109105dcbd3832894..69c81471e4bddad50853fcb62ff9337bb613f30c 100644 --- a/dumux/linear/overlappingpreconditioner.hh +++ b/dumux/linear/overlappingpreconditioner.hh @@ -42,7 +42,6 @@ class OverlappingPreconditioner : public: typedef typename SeqPreCond::domain_type domain_type; typedef typename SeqPreCond::range_type range_type; - typedef typename SeqPreCond::field_type field_type; enum { category = Dune::SolverCategory::overlapping }; diff --git a/dumux/material/constraintsolvers/compositionfromfugacities.hh b/dumux/material/constraintsolvers/compositionfromfugacities.hh index ee47da3ddfada6fa6df3f0763a5d8c00e83893c3..38b84c0358b067deef9fe32d32b41b60209f908f 100644 --- a/dumux/material/constraintsolvers/compositionfromfugacities.hh +++ b/dumux/material/constraintsolvers/compositionfromfugacities.hh @@ -43,7 +43,6 @@ namespace Dumux { template <class Scalar, class FluidSystem> class CompositionFromFugacities { - enum { numPhases = FluidSystem::numPhases }; enum { numComponents = FluidSystem::numComponents }; typedef typename FluidSystem::ParameterCache ParameterCache; diff --git a/dumux/material/fluidmatrixinteractions/Mp/2padapter.hh b/dumux/material/fluidmatrixinteractions/Mp/2padapter.hh index 97299ac145d08f1a05adb1ee610e4885f44a161b..132807ce898ce15cf9d009482455bd1458b3d274 100644 --- a/dumux/material/fluidmatrixinteractions/Mp/2padapter.hh +++ b/dumux/material/fluidmatrixinteractions/Mp/2padapter.hh @@ -49,7 +49,6 @@ class TwoPAdapter public: typedef typename TwoPLaw::Params Params; - typedef typename Params::Scalar Scalar; enum { numPhases = 2 }; /*! diff --git a/test/boxmodels/2p/lensproblem.hh b/test/boxmodels/2p/lensproblem.hh index 486804310f3a51ac0e70caec1f7fb2d22512bf34..bfa92de23943ebdf033a49aba09c8a491fc0d201 100644 --- a/test/boxmodels/2p/lensproblem.hh +++ b/test/boxmodels/2p/lensproblem.hh @@ -190,7 +190,6 @@ class LensProblem : public TwoPProblem<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, TimeManager) TimeManager; - typedef typename GridView::Intersection Intersection; typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; diff --git a/test/boxmodels/richards/richardslensproblem.hh b/test/boxmodels/richards/richardslensproblem.hh index c32530b22a7207eb4d0ee68afb2ecec2b3d08fe6..b6c8d2d9f7c982866dbffb40d37f2d9b7fe653b8 100644 --- a/test/boxmodels/richards/richardslensproblem.hh +++ b/test/boxmodels/richards/richardslensproblem.hh @@ -144,7 +144,6 @@ class RichardsLensProblem : public RichardsBoxProblem<TypeTag> }; typedef typename GridView::template Codim<0>::Entity Element; - typedef typename GridView::Intersection Intersection; typedef Dune::FieldVector<Scalar, dim> GlobalPosition; public: