summaryrefslogtreecommitdiff
path: root/log_get_energy.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-22 20:41:14 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-22 20:41:14 -0300
commita89d8a7325405f4110af7752c4dd6c93820028d4 (patch)
tree26c551a08ab63a3fa97379ea0df498413c66aec8 /log_get_energy.cpp
parent989bd95e19342ef48669d4148d81eb84553c4ade (diff)
downloadcode-a89d8a7325405f4110af7752c4dd6c93820028d4.tar.gz
code-a89d8a7325405f4110af7752c4dd6c93820028d4.tar.bz2
code-a89d8a7325405f4110af7752c4dd6c93820028d4.zip
Higher precision also for log version
Diffstat (limited to 'log_get_energy.cpp')
-rw-r--r--log_get_energy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/log_get_energy.cpp b/log_get_energy.cpp
index 3ea2ab8..227b8b9 100644
--- a/log_get_energy.cpp
+++ b/log_get_energy.cpp
@@ -1,6 +1,8 @@
#include "log-fourier.hpp"
#include <getopt.h>
+#include <iomanip>
#include <iostream>
+#include <iomanip>
int main(int argc, char* argv[]) {
/* Model parameters */
@@ -66,6 +68,8 @@ int main(int argc, char* argv[]) {
Real β = β₀;
+ std::cout << std::setprecision(16);
+
while (β += Δβ, β <= βₘₐₓ) {
if (logFourierLoad(C, R, Ct, Rt, p, s, λ, τ₀, β, log2n, Δτ, k)) {