From 3d11ca6b53efd4592d12282020a7f2f8da4bc042 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 21 Apr 2025 18:57:07 -0300 Subject: Be a little more responsive --- log-fourier_integrator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'log-fourier_integrator.cpp') 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++) { -- cgit v1.2.3-70-g09d2