From 54128d579acf1a3f42fbdc82e8412a9982871d5e Mon Sep 17 00:00:00 2001 From: Daniel Richtmann Date: Fri, 27 Oct 2017 14:45:29 +0200 Subject: [PATCH] Make MR a bit more verbose --- lib/algorithms/iterative/MinimalResidual.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/algorithms/iterative/MinimalResidual.h b/lib/algorithms/iterative/MinimalResidual.h index beda875b..ac4267db 100644 --- a/lib/algorithms/iterative/MinimalResidual.h +++ b/lib/algorithms/iterative/MinimalResidual.h @@ -72,6 +72,11 @@ template class MinimalResidual : public OperatorFunction { RealD cp = norm2(r); // Cp = |r[0]|^2 // 2 Nc Ns flops // flopcount.addSiteFlops(4*Nc*Ns, s); + std::cout << GridLogIterative << std::setprecision(4) << "MinimalResidual: guess " << guess << std::endl; + std::cout << GridLogIterative << std::setprecision(4) << "MinimalResidual: src " << ssq << std::endl; + std::cout << GridLogIterative << std::setprecision(4) << "MinimalResidual: mp " << d << std::endl; + std::cout << GridLogIterative << std::setprecision(4) << "MinimalResidual: cp,r " << cp << std::endl; + if (cp <= rsd_sq) { return; }