From 7f6008a80ebcc0d2e4e78163a23352a6ba4a57cb Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Tue, 10 Mar 2015 12:47:38 +0100 Subject: [PATCH] AdaptiveTimeStepping: also catch ISTLError casued in AMG when time step is to large. --- opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp index fcf595c81..12f9b8472 100644 --- a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp @@ -148,6 +148,10 @@ namespace Opm { std::cerr << e.what() << std::endl; // also catch linear solver not converged } + catch (const Dune::ISTLError& e) { + std::cerr << e.what() << std::endl; + // also catch errors in ISTL AMG that occur when time step is too large + } // (linearIterations < 0 means no convergence in solver) if( linearIterations >= 0 )