From a7a12f6b9325a362055f2ef9d5b70ad04f3fe5c0 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Fri, 20 Sep 2013 15:51:46 +0000
Subject: [PATCH] artgridcreator: get rid of deprecation warning in DUNE 2.3

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11533 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/io/artgridcreator.hh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dumux/io/artgridcreator.hh b/dumux/io/artgridcreator.hh
index 9da61be43b..e30f0c5e66 100644
--- a/dumux/io/artgridcreator.hh
+++ b/dumux/io/artgridcreator.hh
@@ -30,6 +30,7 @@
 #include <sstream>
 #include <iomanip>
 
+#include <dune/common/version.hh>
 #include <dune/grid/common/mcmgmapper.hh>
 #include <dune/grid/common/gridfactory.hh>
 
@@ -525,8 +526,14 @@ public:
         for (ElementIterator eIt = gridView_.template begin<0>(); eIt != eEndIt; ++eIt)
         {
              Dune::GeometryType gt = eIt->geometry().type();
+
+#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 3)
+             const typename Dune::ReferenceElementContainer<DT,dim>::value_type&
+                 refElement = Dune::ReferenceElements<DT,dim>::general(gt);
+#else
              const typename Dune::GenericReferenceElementContainer<DT,dim>::value_type&
                  refElement = Dune::GenericReferenceElements<DT,dim>::general(gt);
+#endif
 
               // Loop over element faces
               for (int i = 0; i < refElement.size(1); i++)
-- 
GitLab