From 13d34cb847c602b9efc0e3919ad54a06ed0a27e2 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Mon, 20 Aug 2012 09:11:08 +0000
Subject: [PATCH] [iterative kernels] make sure 1 is casted to the correct type
 (fix complex) (patch by Matthias Wohlmuth)

[[Imported from SVN: r1667]]
---
 dune/istl/gsetc.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/istl/gsetc.hh b/dune/istl/gsetc.hh
index d411069e..c6d9546e 100644
--- a/dune/istl/gsetc.hh
+++ b/dune/istl/gsetc.hh
@@ -418,7 +418,7 @@ namespace Dune {
         algmeta_itsteps<I-1>::dbgs(*diag,x[i.index()],rhs,w);
       }
       x *= w;
-      x.axpy(1-w,xold);
+      x.axpy(K(1)-w,xold);
     }
 
 #if HAVE_BOOST
-- 
GitLab