summaryrefslogtreecommitdiff
path: root/log-fourier_integrator.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-13 20:24:26 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-13 20:24:26 -0300
commit34771600a168bc12d66986d62e60e77c11a161fe (patch)
treef422575a8e60ccec6e337ccc18527d46f4c64a91 /log-fourier_integrator.cpp
parent4079c1b22fdef05f84201453e11010662b7b5934 (diff)
downloadcode-34771600a168bc12d66986d62e60e77c11a161fe.tar.gz
code-34771600a168bc12d66986d62e60e77c11a161fe.tar.bz2
code-34771600a168bc12d66986d62e60e77c11a161fe.zip
Tweak to μ
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r--log-fourier_integrator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index 5ff27a4..f02aebc 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -156,7 +156,7 @@ int main(int argc, char* argv[]) {
if (μ₋ > 0 && μ₊ > 0) {
μₜ = (μ₊ + μ₋) / 2;
} else {
- μₜ *= C₀;
+ μₜ *= pow(tanh(C₀-1)+1, x);
}
}
@@ -212,8 +212,6 @@ int main(int argc, char* argv[]) {
}
}
- μₜ *= pow(tanh(C₀-1)+1, x);
-
ΔCₜ = 0;
for (unsigned i = 0; i < N; i++) {
ΔCₜ += std::norm(Cₜ[i] - Cₜ₊₁[i]);