Skip to content
Snippets Groups Projects
Commit a7a12f6b authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

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
parent b6ae7f40
No related branches found
No related tags found
No related merge requests found
......@@ -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++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment