summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--log-fourier_integrator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index 9db21f0..04dccfd 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -145,7 +145,9 @@ int main(int argc, char* argv[]) {
std::vector<Real> Rₜ₊₁ = fft.inverse(Ȓₜ₊₁);
std::vector<Real> Cₜ₊₁ = fft.inverse(Ĉₜ₊₁);
- μₜ *= pow(tanh(Cₜ₊₁[0]-1)+1, x);
+ Real C₀ = (Cₜ₊₁[0] + Cₜ₊₁[1]) / 2;
+
+ μₜ *= pow(tanh(C₀-1)+1, x);
ΔCₜ = 0;
for (unsigned i = 0; i < N; i++) {
@@ -175,7 +177,7 @@ int main(int argc, char* argv[]) {
}
std::cerr << "\x1b[2K" << "\r";
- std::cerr << β << " " << μₜ << " " << ΔCₜ << " " << γ << " " << Cₜ[0];
+ std::cerr << β << " " << μₜ << " " << ΔCₜ << " " << γ << " " << C₀;
}
if (std::isnan(Cₜ[0])) {