summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-16 09:26:49 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-16 09:26:49 -0300
commit614a201abaf8abcbf64cf8ead210102ab350dc9e (patch)
treef334a64f33ada370b9a6301075412f379da5d886
parent7fe2d05c02a76b8db72a5a2e1ad8232e6da1ebd2 (diff)
downloadcode-614a201abaf8abcbf64cf8ead210102ab350dc9e.tar.gz
code-614a201abaf8abcbf64cf8ead210102ab350dc9e.tar.bz2
code-614a201abaf8abcbf64cf8ead210102ab350dc9e.zip
One more decimal of precision on printed output
-rw-r--r--log-fourier_integrator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index dc7240a..de3a54c 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -1,6 +1,7 @@
#include "log-fourier.hpp"
#include <getopt.h>
#include <iostream>
+#include <iomanip>
int main(int argc, char* argv[]) {
/* Model parameters */
@@ -199,7 +200,7 @@ int main(int argc, char* argv[]) {
ΔCₜ₋₁ = ΔCₜ;
std::cerr << "\x1b[2K" << "\r";
- std::cerr << β << " " << Δβ << " " << μₜ << " " << ΔCₜ << " " << γ;
+ std::cerr << std::setprecision(7) << β << " " << Δβ << " " << μₜ << " " << ΔCₜ << " " << γ;
}
if (std::isnan(Cₜ[0])) {
@@ -215,7 +216,7 @@ int main(int argc, char* argv[]) {
Real E = energy(fft, Cₜ, Rₜ, p, s, λ, β);
std::cerr << "\x1b[2K" << "\r";
- std::cerr << β << " " << Δβ << " " << μₜ << " " << Ĉₜ[0].real() << " " << E << std::endl;
+ std::cerr << std::setprecision(7) << β << " " << Δβ << " " << μₜ << " " << Ĉₜ[0].real() << " " << E << std::endl;
logFourierSave(Cₜ, Rₜ, Ĉₜ, Ȓₜ, p, s, λ, τ₀, β, log2n, Δτ, logShift);