diff options
| author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-19 15:50:11 -0300 | 
|---|---|---|
| committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-19 15:50:11 -0300 | 
| commit | d2d2ae03be1c3361efdf9bad4ddcc87f53c5a8c4 (patch) | |
| tree | 0131051fd659e99f058cdfe99750c3a9700d3241 | |
| parent | b4d2fa643bddda62b0cb871a77c40cac0e0a0554 (diff) | |
| download | code-d2d2ae03be1c3361efdf9bad4ddcc87f53c5a8c4.tar.gz code-d2d2ae03be1c3361efdf9bad4ddcc87f53c5a8c4.tar.bz2 code-d2d2ae03be1c3361efdf9bad4ddcc87f53c5a8c4.zip | |
More tweaks
| -rw-r--r-- | log-fourier_integrator.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index a0f83cb..9120c83 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -127,12 +127,12 @@ int main(int argc, char* argv[]) {        if (ΔC < ΔC₀) {          ΔC₀ = ΔC;          it = 0; -        γ = std::min(1.01 * γ, 1.0); +        γ = std::min(1.001 * γ, 1.0);        } else {          it++;        } -      if (it > 100) { +      if (it > 10) {          γ = std::max(0.5 * γ, 1e-6);          it = 0;          ΔC₀ = ΔC; | 
