summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";