diff --git a/ebos/femcpgridcompat.hh b/ebos/femcpgridcompat.hh index afe6078af..a4c3100db 100644 --- a/ebos/femcpgridcompat.hh +++ b/ebos/femcpgridcompat.hh @@ -46,13 +46,6 @@ template class EntityPointer; } -#if DUNE_VERSION_NEWER(DUNE_FEM, 2, 6) -template -auto referenceElement(const Dune::cpgrid::Geometry& geo) - -> decltype(referenceElement(geo.type())) -{ return referenceElement(geo.type()); } -#endif - // specialization of dune-fem compatiblity functions for CpGrid, since CpGrid does not use the interface classes. namespace Fem { @@ -61,6 +54,7 @@ namespace Fem { // make_entity for CpGrid entities // //////////////////////////////////////////////////////////// +#if ! DUNE_VERSION_NEWER(DUNE_GRID, 2, 6) template inline Dune::cpgrid::Entity make_entity(const Dune::cpgrid::EntityPointer& entityPointer) { return *entityPointer; } @@ -68,6 +62,7 @@ inline Dune::cpgrid::Entity make_entity(const Dune::cpgrid::EntityPointer template inline Dune::cpgrid::Entity make_entity(Dune::cpgrid::Entity entity) { return std::move(entity); } +#endif //////////////////////////////////////////////////////////// // diff --git a/opm/simulators/linalg/BlackoilAmg.hpp b/opm/simulators/linalg/BlackoilAmg.hpp index 7a8802dae..c0fe84ad8 100644 --- a/opm/simulators/linalg/BlackoilAmg.hpp +++ b/opm/simulators/linalg/BlackoilAmg.hpp @@ -35,6 +35,7 @@ #include #include #include +#include namespace Dune { namespace Amg @@ -227,9 +228,14 @@ struct ScalarType > ComposeScalarTypeForSeqPrecond(Dune::SeqJac); ComposeScalarTypeForSeqPrecond(Dune::SeqSOR); ComposeScalarTypeForSeqPrecond(Dune::SeqSSOR); +#if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 7) +ComposeScalarTypeForSeqPrecond(Dune::SeqILU); +#else +// Dune::SeqGS and Dune::SeqSOR are the same in DUNE 2.7 ComposeScalarTypeForSeqPrecond(Dune::SeqGS); ComposeScalarTypeForSeqPrecond(Dune::SeqILU0); ComposeScalarTypeForSeqPrecond(Dune::SeqILUn); +#endif #undef ComposeScalarTypeForSeqPrecond