mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3492 from blattms/dune-2.8
Fixes and removes deprecation warnings for Dune 2.8
This commit is contained in:
@@ -21,9 +21,10 @@
|
||||
#ifndef OPM_FLEXIBLE_SOLVER_IMPL_HEADER_INCLUDED
|
||||
#define OPM_FLEXIBLE_SOLVER_IMPL_HEADER_INCLUDED
|
||||
|
||||
#include <opm/simulators/linalg/matrixblock.hh>
|
||||
#include <opm/simulators/linalg/ilufirstelement.hh>
|
||||
#include <opm/simulators/linalg/FlexibleSolver.hpp>
|
||||
#include <opm/simulators/linalg/PreconditionerFactory.hpp>
|
||||
#include <opm/simulators/linalg/matrixblock.hh>
|
||||
|
||||
#include <dune/common/fmatrix.hh>
|
||||
#include <dune/istl/bcrsmatrix.hh>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <opm/common/ErrorMacros.hpp>
|
||||
#include <dune/common/version.hh>
|
||||
#include <dune/istl/preconditioner.hh>
|
||||
#include <dune/istl/ilu.hh>
|
||||
#include <dune/istl/paamg/smoother.hh>
|
||||
#include <dune/istl/paamg/graph.hh>
|
||||
#include <dune/istl/paamg/pinfo.hh>
|
||||
@@ -430,7 +431,11 @@ namespace Opm
|
||||
detail::IsPositiveFunctor() );
|
||||
break;
|
||||
default:
|
||||
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
|
||||
bilu0_decomposition( ILU );
|
||||
#else
|
||||
Dune::ILU::blockILU0Decomposition( ILU );
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1022,7 +1027,11 @@ public:
|
||||
break;
|
||||
default:
|
||||
if (interiorSize_ == A_->N())
|
||||
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
|
||||
bilu0_decomposition( *ILU );
|
||||
#else
|
||||
Dune::ILU::blockILU0Decomposition( *ILU );
|
||||
#endif
|
||||
else
|
||||
detail::ghost_last_bilu0_decomposition(*ILU, interiorSize_);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user