From 0476ec4362d7f5d7e1216247e7a4183342d10c4e Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 26 Feb 2016 14:18:59 +0100 Subject: [PATCH] [cctpfa][darcyfluxvars] change type of stencil --- .../implicit/cellcentered/tpfa/darcyfluxvariables.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dumux/porousmediumflow/implicit/cellcentered/tpfa/darcyfluxvariables.hh b/dumux/porousmediumflow/implicit/cellcentered/tpfa/darcyfluxvariables.hh index 41a336efe6..ce6eddbf8e 100644 --- a/dumux/porousmediumflow/implicit/cellcentered/tpfa/darcyfluxvariables.hh +++ b/dumux/porousmediumflow/implicit/cellcentered/tpfa/darcyfluxvariables.hh @@ -58,6 +58,7 @@ class CCTpfaImplicitDarcyFluxVariables typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables; typedef typename GET_PROP_TYPE(TypeTag, BoundaryTypes) BoundaryTypes; typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; + typedef typename GridView::IndexSet::IndexType IndexType; enum { dim = GridView::dimension} ; enum { dimWorld = GridView::dimensionworld} ; @@ -151,9 +152,9 @@ public: return volumeFlux_*upwindFunction(outsideVolVars, insideVolVars); } - std::set<unsigned int> stencil() const + std::set<IndexType> stencil() const { - return std::set<unsigned int>(stencil_.begin(), stencil.end()); + return std::set<IndexType>(stencil_.begin(), stencil.end()); } protected: @@ -231,7 +232,7 @@ protected: const Problem *problem_; const SubControlVolumeFace *scvFace_; //!< Pointer to the sub control volume face for which the flux variables are created Scalar t_; //!< transmissivities for the flux calculation - std::array<Scalar, 2> stencil_; //!< Indices of the cells of which the pressure is needed for the flux calculation + std::array<IndexType, 2> stencil_; //!< Indices of the cells of which the pressure is needed for the flux calculation }; } // end namespace -- GitLab