mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
Use grid view from simulator for element mapper.
With dune-fem the type of the grid view is Dune::Fem::AdaptiveLeafGridPart and not the LeafGridView of the grid. The old approach therefore did not compile as we passed the wrong view.
This commit is contained in:
parent
b8a1f04a48
commit
a1e90be2aa
@ -108,7 +108,7 @@ public:
|
|||||||
// Set it up manually
|
// Set it up manually
|
||||||
using ElementMapper =
|
using ElementMapper =
|
||||||
Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
|
Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
|
||||||
ElementMapper elemMapper(simulator_.vanguard().grid().leafGridView(), Dune::mcmgElementLayout());
|
ElementMapper elemMapper(simulator_.gridView(), Dune::mcmgElementLayout());
|
||||||
detail::findOverlapAndInterior(simulator_.vanguard().grid(), elemMapper, overlapRows_, interiorRows_);
|
detail::findOverlapAndInterior(simulator_.vanguard().grid(), elemMapper, overlapRows_, interiorRows_);
|
||||||
#if HAVE_MPI
|
#if HAVE_MPI
|
||||||
if (parallelInformation_.type() == typeid(ParallelISTLInformation)) {
|
if (parallelInformation_.type() == typeid(ParallelISTLInformation)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user