From 437488eb502b7834b1411ada2297fede0dd20ca5 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 12 May 2020 09:27:06 -0400 Subject: Added more debug printing while tuning. --- hadamard_pt.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp index 724393f..a57c670 100644 --- a/hadamard_pt.hpp +++ b/hadamard_pt.hpp @@ -135,8 +135,12 @@ public: Ms[Ms.size() - i - 2].β = 1 / T1[i]; } - if (err / T1.size() * Ms.size() / (1 / Ms.front().β - 1 / Ms.back().β) < ε2) { + double relErr = err / T1.size() * Ms.size() / (1 / Ms.front().β - 1 / Ms.back().β); + + if (relErr < ε2) { return f; + } else { + std::cout << "Difference from linear in transit flow: " << relErr << ", continuing tuning.\n"; } n += n0; -- cgit v1.2.3-70-g09d2