summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 12:25:09 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 12:25:09 -0400
commitd36995bf1d8012507f2f5096242eb3e7ed0aabb3 (patch)
tree39f8f1d614085c280fc519105307c7c31bb028bd
parentf4272dd04d5357a18f5ce69938bdb7bb83da7034 (diff)
downloadcode-d36995bf1d8012507f2f5096242eb3e7ed0aabb3.tar.gz
code-d36995bf1d8012507f2f5096242eb3e7ed0aabb3.tar.bz2
code-d36995bf1d8012507f2f5096242eb3e7ed0aabb3.zip
Conditional failure.
-rw-r--r--hadamard_pt.hpp2
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) {