diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-14 20:02:41 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-14 20:02:41 -0300 |
commit | 800a3a73161af1ceb58feefc6e6808cbcfaf0c9a (patch) | |
tree | a9c6bd8ba532fdf6c44e3e24e45bd49235fef4c0 /get_energy.cpp | |
parent | 64ed806d057eb58c11bc61fa52def63186aa10ee (diff) | |
download | code-800a3a73161af1ceb58feefc6e6808cbcfaf0c9a.tar.gz code-800a3a73161af1ceb58feefc6e6808cbcfaf0c9a.tar.bz2 code-800a3a73161af1ceb58feefc6e6808cbcfaf0c9a.zip |
Make sure β doesn't drift
Diffstat (limited to 'get_energy.cpp')
-rw-r--r-- | get_energy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_energy.cpp b/get_energy.cpp index 70b8eb8..deee26b 100644 --- a/get_energy.cpp +++ b/get_energy.cpp @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) { std::cout << std::setprecision(15); - while (y += Δy, y <= yₘₐₓ) { + while (y = std::round(1e6 * (y + Δy)) / 1e6, y <= yₘₐₓ) { std::ifstream cfile(fourierFile("C", p, s, λ, τ₀, y, log2n, τₘₐₓ), std::ios::binary); if (cfile.is_open()) { cfile.read((char*)(C.data()), (C.size() / 2) * sizeof(Real)); |