diff options
Diffstat (limited to 'fourier_integrator.cpp')
-rw-r--r-- | fourier_integrator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |