mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
23642bd9f7
commit
1107b39c77
@ -293,17 +293,7 @@ void testQuadrature()
|
|||||||
|
|
||||||
typedef Dune::YaspGrid<dim> Grid;
|
typedef Dune::YaspGrid<dim> Grid;
|
||||||
typedef Grid::LeafGridView GridView;
|
typedef Grid::LeafGridView GridView;
|
||||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 4)
|
|
||||||
Grid grid(upperRight, cellRes);
|
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
|
// compute approximate integral
|
||||||
auto gridView = grid.leafGridView();
|
auto gridView = grid.leafGridView();
|
||||||
|
Loading…
Reference in New Issue
Block a user