diff options
-rw-r--r-- | hadamard_pt.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |