mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-19 16:12:58 -06:00
[bugfix][BlackoilAmg] Fix compilation error when using DUNE 2.7
This commit is contained in:
parent
87b631e15b
commit
8e800f0c93
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user