summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadamard_pt.hpp6
1 files changed, 5 insertions, 1 deletions
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;