diff --git a/dumux/implicit/2pdfm/2pdfmvolumevariables.hh b/dumux/implicit/2pdfm/2pdfmvolumevariables.hh index bda625538a29a3e24f089002a880f3a3b5e0c6c5..1f3dd7e6de74b6b62d2447f49f9ebc82bf66fd18 100644 --- a/dumux/implicit/2pdfm/2pdfmvolumevariables.hh +++ b/dumux/implicit/2pdfm/2pdfmvolumevariables.hh @@ -67,6 +67,12 @@ class TwoPDFMVolumeVariables : public TwoPVolumeVariables<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, Grid) GridType; typedef typename GridType::ctype DT; + enum { + dim = GridView::dimension, + dimWorld = GridView::dimensionworld + }; + typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition; + #if DUNE_VERSION_NEWER(DUNE_GRID, 2, 3) typedef typename Dune::ReferenceElements<DT, dim> ReferenceElements; typedef typename Dune::ReferenceElement<DT, dim> ReferenceElement; @@ -75,12 +81,6 @@ class TwoPDFMVolumeVariables : public TwoPVolumeVariables<TypeTag> typedef typename Dune::GenericReferenceElement<DT, dim> ReferenceElement; #endif - enum { - dim = GridView::dimension, - dimWorld = GridView::dimensionworld - }; - typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition; - public: /*! * \copydoc ImplicitVolumeVariables::update