mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
fix: initialize default values for RuntimeParameters in poet.hpp.in
This commit is contained in:
parent
d5a70a20bb
commit
e34c2ef464
@ -23,7 +23,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <set>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -53,21 +52,21 @@ struct RuntimeParameters {
|
|||||||
bool print_progress = false;
|
bool print_progress = false;
|
||||||
|
|
||||||
static constexpr std::uint32_t WORK_PACKAGE_SIZE_DEFAULT = 32;
|
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;
|
bool use_dht = false;
|
||||||
static constexpr std::uint32_t DHT_SIZE_DEFAULT = 1.5E3;
|
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;
|
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;
|
bool use_interp = false;
|
||||||
static constexpr std::uint32_t INTERP_SIZE_DEFAULT = 100;
|
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;
|
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;
|
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;
|
bool use_ai_surrogate = false;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user