From 5b5ab9a78597db77ed719e0bde347d497d0db10b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6=20Fahlke?= <jorrit@jorrit.de>
Date: Thu, 17 Mar 2016 16:42:34 +0100
Subject: [PATCH] [GMRes] Throw the more specific `SolverAbort` instead of
 `ISTLError` on breakdown.

SolverAbort is derived from ISTLError, so any existing catch-clause should
still apply.
---
 dune/istl/solvers.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/istl/solvers.hh b/dune/istl/solvers.hh
index ae24e8da9..b3bbccb94 100644
--- a/dune/istl/solvers.hh
+++ b/dune/istl/solvers.hh
@@ -1311,7 +1311,7 @@ namespace Dune {
           }
           H[i+1][i] = _sp.norm(w);
           if(abs(H[i+1][i]) < EPSILON)
-            DUNE_THROW(ISTLError,
+            DUNE_THROW(SolverAbort,
                        "breakdown in GMRes - |w| == 0.0 after " << j << " iterations");
 
           // normalize new vector
-- 
GitLab