From b2b68c623f65151d0d7681340e65876460f5ffc8 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 12 May 2020 11:08:49 -0400 Subject: Don't stop tuning if we haven't had full transits. --- hadamard_pt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.3-70-g09d2