summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 09:27:06 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 09:27:06 -0400
commit437488eb502b7834b1411ada2297fede0dd20ca5 (patch)
tree2c16b0d44c3f75fc0ee8805681954e5294634d28
parent667c68e5e69e32fbe5546fb8e7350ee53b9e1d5f (diff)
downloadcode-437488eb502b7834b1411ada2297fede0dd20ca5.tar.gz
code-437488eb502b7834b1411ada2297fede0dd20ca5.tar.bz2
code-437488eb502b7834b1411ada2297fede0dd20ca5.zip
Added more debug printing while tuning.
-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;