diff --git a/dumux/common/start.hh b/dumux/common/start.hh index 27d06f066ccefbbade845cc0c9f9006068bb5054..984fe60ab0b9c30f29561f3e21b8e72c8c951fb5 100644 --- a/dumux/common/start.hh +++ b/dumux/common/start.hh @@ -32,13 +32,9 @@ #include <dune/common/version.hh> -#define HAVE_DUNE21 \ - (DUNE_COMMON_VERSION_MAJOR > 2 \ - || (DUNE_COMMON_VERSION_MAJOR == 2 && DUNE_COMMON_VERSION_MINOR >= 1)) - -#if HAVE_DUNE21 //DUNE_VERSION_NEWER_REV(COMMON, 2, 0, 99) +#if DUNE_VERSION_NEWER_REV(DUNE_COMMON, 2, 1, 0) #include <dune/common/parametertreeparser.hh> -#endif // DUNE_VERSION_NEWER_REV(COMMON, 2, 0, 99) +#endif // DUNE_VERSION_NEWER_REV(DUNE_COMMON, 2, 1, 0) namespace Dumux @@ -238,7 +234,7 @@ int startWithGrid(const typename GET_PROP_TYPE(TypeTag, PTAG(Grid)) &grid, return 3; }; -#if HAVE_DUNE21 //DUNE_VERSION_NEWER_REV(COMMON, 2, 0, 99) +#if DUNE_VERSION_NEWER_REV(DUNE_COMMON, 2, 1, 0) // requires DUNE 2.1 and above /*! @@ -335,7 +331,7 @@ int startFromInputFile(int argc, char **argv) return 3; } -#endif // DUNE_VERSION_NEWER_REV(COMMON, 2, 0, 99) +#endif // DUNE_VERSION_NEWER_REV(DUNE_COMMON, 2, 1, 0) } diff --git a/dumux/io/vtkmultiwriter.hh b/dumux/io/vtkmultiwriter.hh index ac3b9c9b9b66fe711e2deb8161fdcd81cb6f0ab3..37097a0f59052e3cd1ec5a065e7a42cbb34a1e2b 100644 --- a/dumux/io/vtkmultiwriter.hh +++ b/dumux/io/vtkmultiwriter.hh @@ -59,7 +59,7 @@ class VtkMultiWriter typedef typename GridView::Grid Grid; enum { dim = GridView::dimension }; -#if DUNE_VERSION_NEWER_REV(GRID, 2, 1, 0) +#if DUNE_VERSION_NEWER_REV(DUNE_GRID, 2, 1, 0) // DUNE 2.1 and above typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> VertexMapper; typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper; diff --git a/dumux/io/vtknestedfunction.hh b/dumux/io/vtknestedfunction.hh index 98c50d1db74345cee7f155c8410c1380aae8fcf8..d3b6691a7a04a7b43140267d9e0f6617d4bc68a5 100644 --- a/dumux/io/vtknestedfunction.hh +++ b/dumux/io/vtknestedfunction.hh @@ -29,7 +29,7 @@ #include <dune/istl/bvector.hh> #include <dune/common/version.hh> -#if DUNE_VERSION_NEWER_REV(GRID, 2, 1, 0) +#if DUNE_VERSION_NEWER_REV(DUNE_GRID, 2, 1, 0) // DUNE 2.1 and above #include <dune/grid/io/file/vtk/function.hh> #else