summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-27 09:44:11 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-27 09:44:11 -0300
commitbbe904371abfa4c8b2cc84855c7f4013dffc9322 (patch)
treea8812136dad52175e4566ee4afb1ce32fce3a509
parente30dce3c53b7ce12f24f6e777032ac32baa0f2d6 (diff)
downloadcode-bbe904371abfa4c8b2cc84855c7f4013dffc9322.tar.gz
code-bbe904371abfa4c8b2cc84855c7f4013dffc9322.tar.bz2
code-bbe904371abfa4c8b2cc84855c7f4013dffc9322.zip
Control μ damping with γ
-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 c30d01d..52a5d02 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -132,7 +132,7 @@ int main(int argc, char* argv[]) {
std::vector<Real> Rₜ₊₁ = fft.inverse(Ȓₜ₊₁);
std::vector<Real> Cₜ₊₁ = fft.inverse(Ĉₜ₊₁);
- μₜ *= pow(tanh(Cₜ₊₁[0]-1)+1, 0.05);
+ μₜ *= (γ * pow(tanh(Cₜ₊₁[0]-1)+1, 0.5) + (1 - γ));;
ΔCₜ = 0;
for (unsigned i = 0; i < N; i++) {