← Documentation
ADS-IDAC Engine 5.0.0
SimConfig.h
Go to the documentation of this file.
1
14
15#pragma once
16#include <string>
17
18struct SimConfig {
20 bool memory_restart = false;
21 long memory_limit_mb = 0;
22 bool compress_queue = false;
23 bool aggregate_pe_output = false;
26 std::string shm_prefix;
27 std::string solver_url;
28 std::string checkpoint_dir;
30 bool checkpoint_stop = false;
31 std::string resume_file;
32 bool resume_has_end_states = false;
34 bool viz_output_events = false;
35 bool viz_output_end_states = false;
37 std::string occupancy_log;
38 int merge_mode = 0;
42 bool merge_only = false;
45 int merge_threads = 0;
46 bool rm_cycle_enabled = false;
47};
std::string resume_file
–resume checkpoint file as an absolute path (empty = fresh start)
Definition: SimConfig.h:31
bool rm_cycle_enabled
–enable-rm-cycle: ReasonMachine snapshot/restore/serialize/tbi machinery (see docs/developer/internal...
Definition: SimConfig.h:46
std::string checkpoint_dir
–checkpoint-dir as an absolute path, created at startup (empty = disabled)
Definition: SimConfig.h:28
bool checkpoint_stop
–checkpoint-stop: exit after the first checkpoint written; requires checkpoint_interval > 0
Definition: SimConfig.h:30
int checkpoint_interval
–checkpoint-interval: checkpoint every N completed sequences (0 = disabled); requires checkpoint_dir
Definition: SimConfig.h:29
std::string shm_prefix
Path prefix for memory-restart files: "/dev/shm/adsidac_<pid>_" when /dev/shm exists,...
Definition: SimConfig.h:26
bool resume_has_end_states
True if the BranchRecord restored by a serial resume held end states (checkpoint written by a serial ...
Definition: SimConfig.h:32
long memory_limit_mb
–memory-limit [MB]: 0 = unlimited; >0 = keep a restart buffer in memory only while process RSS is bel...
Definition: SimConfig.h:21
int merge_mode
Definition: SimConfig.h:38
bool merge_only
Definition: SimConfig.h:42
int is_mpi_environment
1 if OMPI_COMM_WORLD_SIZE or PMI_SIZE is set in the environment, 0 for serial
Definition: SimConfig.h:33
double truncation_time_override
CLI –truncation-time override [s] (0 = use ZCtrlPar.txt value). Not stored in checkpoints.
Definition: SimConfig.h:36
int thermo_cache_mode
0 = reuse cached steam tables (default), 2 = force reload every sequence (–no-thermo-cache)....
Definition: SimConfig.h:19
int merge_threads
–merge-threads for –merge-only, threads over rank dirs (0 or less = min(8, hardware threads))
Definition: SimConfig.h:45
bool compress_queue
–compress-queue (default off): LZ4-compress RELAP restart buffers held and sent between MPI ranks
Definition: SimConfig.h:22
bool viz_output_end_states
Stream end states to viz server (–viz-outputs=es or all)
Definition: SimConfig.h:35
bool viz_output_events
Stream PE events to viz server (–viz-outputs=events or all)
Definition: SimConfig.h:34
std::string solver_url
REST solver URL (empty = use RELAP5). –solver=mock gives "http://localhost:<--solver-port,...
Definition: SimConfig.h:27
bool memory_restart
In-memory restart. parseOptions() sets it to !–no-memory-restart, so it is TRUE in every run unless –...
Definition: SimConfig.h:20
bool aggregate_pe_output
Definition: SimConfig.h:23
std::string occupancy_log
–occupancy-log path: CSV of server queue/worker occupancy (empty = disabled, MPI only)....
Definition: SimConfig.h:37