From 24a796d66fafa36ac1777b961eae7a338c6873d3 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 2 Apr 2025 21:49:45 -0300 Subject: More small tweaks --- fourier_integrator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fourier_integrator.cpp b/fourier_integrator.cpp index fab80c7..4ee9150 100644 --- a/fourier_integrator.cpp +++ b/fourier_integrator.cpp @@ -172,7 +172,7 @@ int main(int argc, char* argv[]) { ΔC += pow(Cnew[i] - C[i], 2); } - z *= Cnew[0]; + z *= sqrt(Cnew[0]); Real energy = 0; @@ -189,6 +189,7 @@ int main(int argc, char* argv[]) { if (it > maxIterations) { y -= Δy; Δy /= 2; + y += Δy; it = 0; } } -- cgit v1.2.3-70-g09d2