From 61a2a8aaf7a4c02f75ac85e42841285aba7ef5a1 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 4 Apr 2025 16:31:11 -0300 Subject: Adopted new scaling of Γ₀ to keep z and y moderate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fourier_integrator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fourier_integrator.cpp') diff --git a/fourier_integrator.cpp b/fourier_integrator.cpp index d83fb9d..24a7f1d 100644 --- a/fourier_integrator.cpp +++ b/fourier_integrator.cpp @@ -17,7 +17,7 @@ int main(int argc, char* argv[]) { unsigned maxIterations = 1000; Real ε = 1e-14; - Real γ = 0; + Real γ = 1; bool loadData = false; @@ -68,8 +68,8 @@ int main(int argc, char* argv[]) { Real Δτ = τₘₐₓ / M_PI / n; Real Δω = M_PI / τₘₐₓ; - Real z = (-1+sqrt(1+2*τ₀)) / (2 * τ₀); - Real Γ₀ = 1; + Real z = 0.5; + Real Γ₀ = 1 + τ₀ / 2; std::vector C(2 * n); std::vector R(2 * n); @@ -103,7 +103,7 @@ int main(int argc, char* argv[]) { Ct = fft.fourier(C); Rt = fft.fourier(R); - z = estimateZ(fft, C, Ct, R, Rt, p, s, λ, y); + z = estimateZ(fft, C, Ct, R, Rt, p, s, λ, τ₀, y); } while (y += Δy, y <= yₘₐₓ) { -- cgit v1.2.3-70-g09d2