fix forgotten lonely Dune 2.3 deprecation warning

This commit is contained in:
Andreas Lauser 2013-12-03 11:45:39 +01:00
parent 3c8229586f
commit 3f7d617237

View File

@ -286,7 +286,11 @@ void testQuadrature()
isPeriodic, 0); // overlap isPeriodic, 0); // overlap
// compute approximate integral // compute approximate integral
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 3)
auto gridView = grid.leafGridView();
#else
auto gridView = grid.leafView(); auto gridView = grid.leafView();
#endif
auto eIt = gridView.begin<0>(); auto eIt = gridView.begin<0>();
const auto eEndIt = gridView.end<0>(); const auto eEndIt = gridView.end<0>();
Scalar result = 0; Scalar result = 0;