diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-22 20:37:13 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-22 20:37:13 -0300 |
commit | 989bd95e19342ef48669d4148d81eb84553c4ade (patch) | |
tree | 288da186162fd52bcb26be56a602c6f9a76fa75c | |
parent | 3ff3bcc3545f04443231c2f3a89edfe5d15859fb (diff) | |
download | code-989bd95e19342ef48669d4148d81eb84553c4ade.tar.gz code-989bd95e19342ef48669d4148d81eb84553c4ade.tar.bz2 code-989bd95e19342ef48669d4148d81eb84553c4ade.zip |
Higher precision in the energy output
-rw-r--r-- | get_energy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/get_energy.cpp b/get_energy.cpp index c33c04e..70b8eb8 100644 --- a/get_energy.cpp +++ b/get_energy.cpp @@ -2,6 +2,7 @@ #include <getopt.h> #include <iostream> #include <fstream> +#include <iomanip> int main(int argc, char* argv[]) { unsigned p = 2; @@ -60,6 +61,8 @@ int main(int argc, char* argv[]) { std::vector<Real> C(2 * n); std::vector<Real> R(2 * n); + std::cout << std::setprecision(15); + while (y += Δy, y <= yₘₐₓ) { std::ifstream cfile(fourierFile("C", p, s, λ, τ₀, y, log2n, τₘₐₓ), std::ios::binary); if (cfile.is_open()) { |