[bugfix][BlackoilAmg] Fix compilation error when using DUNE 2.7

This commit is contained in:
Robert Kloefkorn 2019-11-27 15:40:17 +01:00
parent 87b631e15b
commit 8e800f0c93

View File

@ -35,6 +35,7 @@
#include <dune/istl/scalarproducts.hh>
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/version.hh>
namespace Dune
{
namespace Amg
@ -227,9 +228,14 @@ struct ScalarType<Dune::SeqScalarProduct<X> >
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