mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make it compile with dune-fem
This commit is contained in:
parent
0ac2f922d3
commit
c4c0b7a756
@ -90,6 +90,7 @@ namespace Opm
|
|||||||
using FlexibleSolverType = Dune::FlexibleSolver<Matrix, Vector>;
|
using FlexibleSolverType = Dune::FlexibleSolver<Matrix, Vector>;
|
||||||
using AbstractOperatorType = Dune::AssembledLinearOperator<Matrix, Vector, Vector>;
|
using AbstractOperatorType = Dune::AssembledLinearOperator<Matrix, Vector, Vector>;
|
||||||
using WellModelOperator = WellModelAsLinearOperator<WellModel, Vector, Vector>;
|
using WellModelOperator = WellModelAsLinearOperator<WellModel, Vector, Vector>;
|
||||||
|
using ElementMapper = GetPropType<TypeTag, Properties::ElementMapper>;
|
||||||
|
|
||||||
#if HAVE_CUDA || HAVE_OPENCL
|
#if HAVE_CUDA || HAVE_OPENCL
|
||||||
static const unsigned int block_size = Matrix::block_type::rows;
|
static const unsigned int block_size = Matrix::block_type::rows;
|
||||||
@ -152,9 +153,7 @@ namespace Opm
|
|||||||
// For some reason simulator_.model().elementMapper() is not initialized at this stage
|
// For some reason simulator_.model().elementMapper() is not initialized at this stage
|
||||||
// Hence const auto& elemMapper = simulator_.model().elementMapper(); does not work.
|
// Hence const auto& elemMapper = simulator_.model().elementMapper(); does not work.
|
||||||
// Set it up manually
|
// Set it up manually
|
||||||
using ElementMapper =
|
ElementMapper elemMapper(simulator_.vanguard().gridView(), Dune::mcmgElementLayout());
|
||||||
Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
|
|
||||||
ElementMapper elemMapper(simulator_.vanguard().grid().leafGridView(), Dune::mcmgElementLayout());
|
|
||||||
detail::findOverlapAndInterior(simulator_.vanguard().grid(), elemMapper, overlapRows_, interiorRows_);
|
detail::findOverlapAndInterior(simulator_.vanguard().grid(), elemMapper, overlapRows_, interiorRows_);
|
||||||
|
|
||||||
useWellConn_ = EWOMS_GET_PARAM(TypeTag, bool, MatrixAddWellContributions);
|
useWellConn_ = EWOMS_GET_PARAM(TypeTag, bool, MatrixAddWellContributions);
|
||||||
|
Loading…
Reference in New Issue
Block a user