diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-21 18:57:07 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-21 18:57:07 -0300 |
commit | 3d11ca6b53efd4592d12282020a7f2f8da4bc042 (patch) | |
tree | c566aee3def36fa39de6cf372e2e6f625e141779 /log-fourier_integrator.cpp | |
parent | ef19d0f8a79b8cf18e900d0700b27294e3f4a968 (diff) | |
download | code-3d11ca6b53efd4592d12282020a7f2f8da4bc042.tar.gz code-3d11ca6b53efd4592d12282020a7f2f8da4bc042.tar.bz2 code-3d11ca6b53efd4592d12282020a7f2f8da4bc042.zip |
Be a little more responsive
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r-- | log-fourier_integrator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 3e05a08..750f79d 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -154,11 +154,13 @@ int main(int argc, char* argv[]) { if (stepsUp > stepsToRespond) { γ = std::max(γ/2, 1e-4); stepsUp = 0; + ΔCmin = ΔCₜ; } if (stepsDown > stepsToRespond) { γ = std::min(2*γ, 1.0); stepsDown = 0; + ΔCmin = ΔCₜ; } for (unsigned i = 0; i < N; i++) { |