diff --git a/dumux/discretization/box/fvgridgeometry.hh b/dumux/discretization/box/fvgridgeometry.hh index 4e04f43d917ce24f99c2f0ec64dc2eb39331cccd..8825dbdaaba35d0e947ceb31f52d12a9ccfb350a 100644 --- a/dumux/discretization/box/fvgridgeometry.hh +++ b/dumux/discretization/box/fvgridgeometry.hh @@ -56,6 +56,7 @@ class BoxFVGridGeometry<TypeTag, true> : public BaseFVGridGeometry<TypeTag> using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace); using FVElementGeometry = typename GET_PROP_TYPE(TypeTag, FVElementGeometry); + using VertexMapper = typename GET_PROP_TYPE(TypeTag, VertexMapper); using Element = typename GridView::template Codim<0>::Entity; using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); @@ -75,6 +76,11 @@ public: BoxFVGridGeometry(const GridView gridView) : ParentType(gridView) {} + //! the vertex mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const VertexMapper& dofMapper() const + { return this->vertexMapper(); } + //! The total number of sub control volumes std::size_t numScv() const { return numScv_; } @@ -240,6 +246,7 @@ class BoxFVGridGeometry<TypeTag, false> : public BaseFVGridGeometry<TypeTag> using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace); using FVElementGeometry = typename GET_PROP_TYPE(TypeTag, FVElementGeometry); + using VertexMapper = typename GET_PROP_TYPE(TypeTag, VertexMapper); static const int dim = GridView::dimension; static const int dimWorld = GridView::dimensionworld; @@ -259,6 +266,11 @@ public: BoxFVGridGeometry(const GridView gridView) : ParentType(gridView) {} + //! the vertex mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const VertexMapper& dofMapper() const + { return this->vertexMapper(); } + //! The total number of sub control volumes std::size_t numScv() const { return numScv_; } diff --git a/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh b/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh index b02442694634a1ac1a5159dfb91bab07db0babd7..6b0db76b1d4e48069e9269a213dfd582ea2a71d8 100644 --- a/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh +++ b/dumux/discretization/cellcentered/mpfa/fvgridgeometry.hh @@ -55,6 +55,7 @@ class CCMpfaFVGridGeometry<TypeTag, true> : public BaseFVGridGeometry<TypeTag> { using ParentType = BaseFVGridGeometry<TypeTag>; using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar); + using ElementMapper = typename GET_PROP_TYPE(TypeTag, ElementMapper); using MpfaHelper = typename GET_PROP_TYPE(TypeTag, MpfaHelper); using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace); @@ -84,6 +85,11 @@ public: : ParentType(gridView), elementMap_(gridView) {} + //! the element mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const ElementMapper& dofMapper() const + { return this->elementMapper(); } + /*! * \brief Returns the total number of sub control volumes. */ @@ -444,6 +450,7 @@ class CCMpfaFVGridGeometry<TypeTag, false> : public BaseFVGridGeometry<TypeTag> using ConnectivityMap = CCMpfaConnectivityMap<TypeTag>; using GridView = typename GET_PROP_TYPE(TypeTag, GridView); + using ElementMapper = typename GET_PROP_TYPE(TypeTag, ElementMapper); static constexpr int dim = GridView::dimension; static constexpr int dimWorld = GridView::dimensionworld; using Element = typename GridView::template Codim<0>::Entity; @@ -464,6 +471,11 @@ public: : ParentType(gridView), elementMap_(gridView) {} + //! the element mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const ElementMapper& dofMapper() const + { return this->elementMapper(); } + /*! * \brief Returns the total number of sub control volumes. */ diff --git a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh index 6ddb2493f025a5465df8ae44f722f01277b82936..d049e4c8210bf5bf47c995ac69dcbddb2af196aa 100644 --- a/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh +++ b/dumux/discretization/cellcentered/tpfa/fvgridgeometry.hh @@ -58,6 +58,7 @@ class CCTpfaFVGridGeometry<TypeTag, true> : public BaseFVGridGeometry<TypeTag> using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace); using FVElementGeometry = typename GET_PROP_TYPE(TypeTag, FVElementGeometry); + using ElementMapper = typename GET_PROP_TYPE(TypeTag, ElementMapper); using Element = typename GridView::template Codim<0>::Entity; using ConnectivityMap = CCSimpleConnectivityMap<TypeTag>; @@ -77,6 +78,11 @@ public: , elementMap_(gridView) {} + //! the element mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const ElementMapper& dofMapper() const + { return this->elementMapper(); } + //! The total number of sub control volumes std::size_t numScv() const { @@ -313,6 +319,7 @@ class CCTpfaFVGridGeometry<TypeTag, false> : public BaseFVGridGeometry<TypeTag> using SubControlVolume = typename GET_PROP_TYPE(TypeTag, SubControlVolume); using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace); using FVElementGeometry = typename GET_PROP_TYPE(TypeTag, FVElementGeometry); + using ElementMapper = typename GET_PROP_TYPE(TypeTag, ElementMapper); using Element = typename GridView::template Codim<0>::Entity; using ConnectivityMap = CCSimpleConnectivityMap<TypeTag>; @@ -329,6 +336,11 @@ public: , elementMap_(gridView) {} + //! the element mapper is the dofMapper + //! this is convenience to have better chance to have the same main files for box/tpfa/mpfa... + const ElementMapper& dofMapper() const + { return this->elementMapper(); } + //! The total number of sub control volumes std::size_t numScv() const {