summaryrefslogtreecommitdiff
path: root/log-fourier_integrator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r--log-fourier_integrator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index ebd161b..37a28eb 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -142,7 +142,7 @@ int main(int argc, char* argv[]) {
std::cerr << β << " " << μ << " " << ΔC << " " << γ;
std::cerr << "\r";
}
- if (std::abs(Cₜ[0] - 1) < ε) {
+ if (pow(Cₜ[0] - 1, 2) < ε) {
break;
}
if (μ₁ == 0 || μ₂ == 0) {