From f66fb298dbd371b59d718f93496caf889604c252 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 24 Apr 2018 11:25:33 +0200 Subject: [PATCH] keep using the block inversion algorithm in OPM --- opm/autodiff/ISTLSolver.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/opm/autodiff/ISTLSolver.hpp b/opm/autodiff/ISTLSolver.hpp index 4577fa46a..c13cb946d 100644 --- a/opm/autodiff/ISTLSolver.hpp +++ b/opm/autodiff/ISTLSolver.hpp @@ -479,16 +479,15 @@ namespace Detail } } -#if DUNE_VERSION_NEWER_REV(DUNE_ISTL, 2 , 5, 1) - // 3x3 matrix block inversion was unstable at least 2.3 until and including - // 2.5.0 - typedef ParallelOverlappingILU0 SeqPreconditioner; -#else + + // 3x3 matrix block inversion was unstable at least 2.3 until and including + // 2.5.0. There may still be some issue with the 4x4 matrix block inversion + // we therefore still use the block inversion in OPM typedef ParallelOverlappingILU0 >, - Vector, Vector> SeqPreconditioner; -#endif + Vector, Vector> SeqPreconditioner; + template std::unique_ptr constructPrecond(Operator& opA, const Dune::Amg::SequentialInformation&) const