From e9543cdacd275f3aa2cb80d20140844133ab4416 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 3 Sep 2020 21:56:02 -0400 Subject: [PATCH] Time deflation --- Grid/algorithms/iterative/Deflation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grid/algorithms/iterative/Deflation.h b/Grid/algorithms/iterative/Deflation.h index 626b60e3..3ad79db4 100644 --- a/Grid/algorithms/iterative/Deflation.h +++ b/Grid/algorithms/iterative/Deflation.h @@ -60,6 +60,8 @@ public: DeflatedGuesser(const std::vector & _evec,const std::vector & _eval) : evec(_evec), eval(_eval) {}; virtual void operator()(const Field &src,Field &guess) { + RealD t=-usecond(); + guess = Zero(); assert(evec.size()==eval.size()); auto N = evec.size(); @@ -68,6 +70,8 @@ public: axpy(guess,TensorRemove(innerProduct(tmp,src)) / eval[i],tmp,guess); } guess.Checkerboard() = src.Checkerboard(); + t+=usecond(); + std::cout<