summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-02 21:49:45 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-02 21:49:45 -0300
commit24a796d66fafa36ac1777b961eae7a338c6873d3 (patch)
tree2064e41b9df222c40a6fe14feb41020a88d3e257
parent218737ee7a4e763635c40e20ac1bdccc623b8f36 (diff)
downloadcode-24a796d66fafa36ac1777b961eae7a338c6873d3.tar.gz
code-24a796d66fafa36ac1777b961eae7a338c6873d3.tar.bz2
code-24a796d66fafa36ac1777b961eae7a338c6873d3.zip
More small tweaks
-rw-r--r--fourier_integrator.cpp3
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;
}
}