diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-07 23:07:09 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-07 23:07:09 -0300 |
commit | 1062dfa43c4206760fa02bf0c4a971fd782cb75c (patch) | |
tree | af6b9427336da58196097edfa6e1e3dc779f1782 /log-fourier_integrator.cpp | |
parent | 7332c03a462bf426f113110e00d9b28d306c4af0 (diff) | |
download | code-1062dfa43c4206760fa02bf0c4a971fd782cb75c.tar.gz code-1062dfa43c4206760fa02bf0c4a971fd782cb75c.tar.bz2 code-1062dfa43c4206760fa02bf0c4a971fd782cb75c.zip |
Revert "Undo change to μ adjustement, calculate energy differently"
This reverts commit 7332c03a462bf426f113110e00d9b28d306c4af0.
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r-- | log-fourier_integrator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 55f358a..017def7 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -140,7 +140,8 @@ 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++) { |