From 6d39e559e6af61d7bcef4613b3c2d26b588dc77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Fri, 20 Dec 2024 09:18:44 +0100 Subject: [PATCH] fix: initialize default values for RuntimeParameters in poet.hpp.in --- src/poet.hpp.in | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/poet.hpp.in b/src/poet.hpp.in index c48a0f3df..9462f6d7e 100644 --- a/src/poet.hpp.in +++ b/src/poet.hpp.in @@ -23,7 +23,6 @@ #pragma once #include -#include #include #include @@ -47,27 +46,27 @@ struct RuntimeParameters { // MDL added to accomodate for qs::qsave/qread bool as_rds = false; - bool as_qs = false; - std::string out_ext; + bool as_qs = false; + std::string out_ext; bool print_progress = false; static constexpr std::uint32_t WORK_PACKAGE_SIZE_DEFAULT = 32; - std::uint32_t work_package_size; + std::uint32_t work_package_size = WORK_PACKAGE_SIZE_DEFAULT; bool use_dht = false; static constexpr std::uint32_t DHT_SIZE_DEFAULT = 1.5E3; - std::uint32_t dht_size; + std::uint32_t dht_size = DHT_SIZE_DEFAULT; static constexpr std::uint8_t DHT_SNAPS_DEFAULT = 0; - std::uint8_t dht_snaps; + std::uint8_t dht_snaps = DHT_SNAPS_DEFAULT; bool use_interp = false; static constexpr std::uint32_t INTERP_SIZE_DEFAULT = 100; - std::uint32_t interp_size; + std::uint32_t interp_size = INTERP_SIZE_DEFAULT; static constexpr std::uint32_t INTERP_MIN_ENTRIES_DEFAULT = 5; - std::uint32_t interp_min_entries; + std::uint32_t interp_min_entries = INTERP_MIN_ENTRIES_DEFAULT; static constexpr std::uint32_t INTERP_BUCKET_ENTRIES_DEFAULT = 20; - std::uint32_t interp_bucket_entries; + std::uint32_t interp_bucket_entries = INTERP_BUCKET_ENTRIES_DEFAULT; bool use_ai_surrogate = false; };