mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[bugfix][EclWriter] GlobalGrid and GridView can potentially differ and
that is why types should be extracted from the structures that provide the objects.
This commit is contained in:
@@ -478,12 +478,13 @@ private:
|
|||||||
tranz.data[0] = 0.0;
|
tranz.data[0] = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& globalGridView = globalGrid_.leafGridView();
|
typedef typename Grid :: LeafGridView GlobalGridView;
|
||||||
|
const GlobalGridView& globalGridView = globalGrid_.leafGridView();
|
||||||
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
||||||
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView> ElementMapper;
|
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView> ElementMapper;
|
||||||
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
|
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
|
||||||
#else
|
#else
|
||||||
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper;
|
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView, Dune::MCMGElementLayout> ElementMapper;
|
||||||
ElementMapper globalElemMapper(globalGridView);
|
ElementMapper globalElemMapper(globalGridView);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -576,13 +577,14 @@ private:
|
|||||||
// Checked when writing NNC transmissibilities from the simulation.
|
// Checked when writing NNC transmissibilities from the simulation.
|
||||||
std::sort(nncData.begin(), nncData.end(), nncCompare);
|
std::sort(nncData.begin(), nncData.end(), nncCompare);
|
||||||
|
|
||||||
const auto& globalGridView = globalGrid_.leafGridView();
|
typedef typename Grid :: LeafGridView GlobalGridView;
|
||||||
|
const GlobalGridView& globalGridView = globalGrid_.leafGridView();
|
||||||
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
||||||
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView> ElementMapper;
|
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView> ElementMapper;
|
||||||
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
|
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
|
||||||
|
|
||||||
#else
|
#else
|
||||||
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGElementLayout> ElementMapper;
|
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView, Dune::MCMGElementLayout> ElementMapper;
|
||||||
ElementMapper globalElemMapper(globalGridView);
|
ElementMapper globalElemMapper(globalGridView);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user