From d36995bf1d8012507f2f5096242eb3e7ed0aabb3 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 12 May 2020 12:25:09 -0400 Subject: Conditional failure. --- hadamard_pt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp index b3c9871..b73afe0 100644 --- a/hadamard_pt.hpp +++ b/hadamard_pt.hpp @@ -155,7 +155,7 @@ public: // double relErr = err / T1.size() * Ms.size() / (1 / Ms.front().β - 1 / Ms.back().β); std::cout << "RMS difference from ideal transit flow is " << relErr << " ± " << δΔf / Ms.size() << ".\n"; - if (relErr < ε2 || δΔf != δΔf) { + if (relErr < ε2 && !(δΔf != δΔf)) { return f; } else { if (5 * δΔf > Δf || δΔf != δΔf) { -- cgit v1.2.3-70-g09d2