summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 11:08:49 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 11:08:49 -0400
commitb2b68c623f65151d0d7681340e65876460f5ffc8 (patch)
treea335f3754886423c2b38095f22e2fbb958395b0d
parent2ba6d084b40e99424558687f184c3ec1d3479ff9 (diff)
downloadcode-b2b68c623f65151d0d7681340e65876460f5ffc8.tar.gz
code-b2b68c623f65151d0d7681340e65876460f5ffc8.tar.bz2
code-b2b68c623f65151d0d7681340e65876460f5ffc8.zip
Don't stop tuning if we haven't had full transits.
-rw-r--r--hadamard_pt.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp
index 90fa661..7b3f70c 100644
--- a/hadamard_pt.hpp
+++ b/hadamard_pt.hpp
@@ -154,7 +154,7 @@ public:
double relErr = Δf / Ms.size();
// double relErr = err / T1.size() * Ms.size() / (1 / Ms.front().β - 1 / Ms.back().β);
- if (relErr < ε2) {
+ if (relErr < ε2 || δΔf != δΔf) {
return f;
} else {
std::cout << "RMS difference from ideal transit flow is " << relErr << " ± " << δΔf / Ms.size() << ", continuing tuning.\n";