mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix build for the unit tests if dune-alugrid is available
it failed because the stencils now require to specify the DOF-mapper externally...
This commit is contained in:
parent
a6d8748105
commit
b31e0c3d2f
@ -30,6 +30,7 @@
|
||||
#include <dune/common/exceptions.hh>
|
||||
#include <dune/grid/yaspgrid.hh>
|
||||
#include <dune/grid/io/file/vtk/vtkwriter.hh>
|
||||
#include <dune/grid/common/mcmgmapper.hh>
|
||||
|
||||
#if HAVE_DUNE_ALUGRID
|
||||
#include <dune/alugrid/grid.hh>
|
||||
@ -196,7 +197,9 @@ void writeCubeSubControlVolumes(const Grid &grid)
|
||||
|
||||
GridFactory2 gf2;
|
||||
const auto &gridView = grid.leafView();
|
||||
Stencil stencil(gridView);
|
||||
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> VertexMapper;
|
||||
VertexMapper vertexMapper(gridView);
|
||||
Stencil stencil(gridView, vertexMapper);
|
||||
auto eIt = gridView.template begin<0>();
|
||||
const auto &eEndIt = gridView.template end<0>();
|
||||
for (; eIt != eEndIt; ++eIt) {
|
||||
|
Loading…
Reference in New Issue
Block a user