Skip to content
Snippets Groups Projects
Commit 0294ce64 authored by Andreas Lauser's avatar Andreas Lauser
Browse files

VtkMultWriter: remove yet another DUNE-2.1 ism

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6033 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent a3989c9e
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,24 @@ class VtkMultiWriter
typedef typename GridView::Grid Grid;
enum { dim = GridView::dimension };
#if DUNE_VERSION_NEWER_REV(GRID, 2, 0, 99)
// DUNE 2.1 and above
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> VertexMapper;
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper;
#else
// DUNE 2.0 and below
template<int dim>
struct VertexLayout {
bool contains (Dune::GeometryType gt) const
{ return gt.dim() == 0; } };
template<int dim>
struct ElementLayout {
bool contains (Dune::GeometryType gt) const
{ return gt.dim() == dim; } };
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, VertexLayout> VertexMapper;
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, ElementLayout> ElementMapper;
#endif
// this constructor won't work anymore. Please use the variant
// below which also includes the GridView as an argument.
......
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