diff --git a/dumux/implicit/2pdfm/2pdfmvolumevariables.hh b/dumux/implicit/2pdfm/2pdfmvolumevariables.hh index 43c15d732201e1b68e967c7ff03f5d449433da42..bda625538a29a3e24f089002a880f3a3b5e0c6c5 100644 --- a/dumux/implicit/2pdfm/2pdfmvolumevariables.hh +++ b/dumux/implicit/2pdfm/2pdfmvolumevariables.hh @@ -66,6 +66,15 @@ class TwoPDFMVolumeVariables : public TwoPVolumeVariables<TypeTag> typedef typename GridView::template Codim<0>::Entity Element; typedef typename GET_PROP_TYPE(TypeTag, Grid) GridType; typedef typename GridType::ctype DT; + +#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 3) + typedef typename Dune::ReferenceElements<DT, dim> ReferenceElements; + typedef typename Dune::ReferenceElement<DT, dim> ReferenceElement; +#else + typedef typename Dune::GenericReferenceElements<DT, dim> ReferenceElements; + typedef typename Dune::GenericReferenceElement<DT, dim> ReferenceElement; +#endif + enum { dim = GridView::dimension, dimWorld = GridView::dimensionworld @@ -255,8 +264,7 @@ public: { Scalar volSCVFracture; Dune::GeometryType gt = element.geometry().type(); - const typename Dune::GenericReferenceElementContainer<DT,dim>::value_type& - refElement = Dune::GenericReferenceElements<DT,dim>::general(gt); + const ReferenceElement &refElement = ReferenceElements::general(gt); for (int faceIdx=0; faceIdx<refElement.size(1); faceIdx++) { diff --git a/dumux/implicit/box/intersectiontovertexbc.hh b/dumux/implicit/box/intersectiontovertexbc.hh index 8f086f622a4f0551a11a487163cda9613054b102..a4f3231e541ddc401858b64cd663934b99146d82 100644 --- a/dumux/implicit/box/intersectiontovertexbc.hh +++ b/dumux/implicit/box/intersectiontovertexbc.hh @@ -49,8 +49,13 @@ class IntersectionToVertexBC typedef typename GridView::IntersectionIterator IntersectionIterator; typedef typename GridView::template Codim<dim>::Entity Vertex; +#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 3) + typedef typename Dune::ReferenceElements<Scalar, dim> ReferenceElements; + typedef typename Dune::ReferenceElement<Scalar, dim> ReferenceElement; +#else typedef typename Dune::GenericReferenceElements<Scalar, dim> ReferenceElements; typedef typename Dune::GenericReferenceElement<Scalar, dim> ReferenceElement; +#endif public: IntersectionToVertexBC(const Problem& problem)