remove support for dune < 2.4

this allows quite a substantial amount of code decluttering, mainly
because Dune 2.4 renamed mapper.map() to mapper.index().
This commit is contained in:
Andreas Lauser 2017-07-13 14:08:01 +02:00
parent 23642bd9f7
commit 1107b39c77

View File

@ -293,17 +293,7 @@ void testQuadrature()
typedef Dune::YaspGrid<dim> Grid;
typedef Grid::LeafGridView GridView;
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 4)
Grid grid(upperRight, cellRes);
#else
Grid grid(
#ifdef HAVE_MPI
Dune::MPIHelper::getCommunicator(),
#endif
upperRight, // upper right
cellRes, // number of cells
isPeriodic, 0); // overlap
#endif
// compute approximate integral
auto gridView = grid.leafGridView();