BioCMAMC-ST
|
Core component to perform simulation. More...
Namespaces | |
namespace | ScalarFactory |
Provides structures and functions to initialize scalar data for simulations, supporting multiple data sources. | |
Classes | |
struct | CaseData |
Holds the data required to execute a simulation case. More... | |
class | DataExporter |
A class responsible for exporting various types of data such as matrices, arrays, and metadata in a structured format. More... | |
class | GlobalInitialiser |
A class responsible for initializing various components of a simulation framework. More... | |
class | MainExporter |
Exporter for host-only data related to general-purpose simulation data (e.g., concentration, parameters, and other global data). More... | |
class | PartialExporter |
Exporter for each MPI worker (including host) that exports data relative to particle state. More... | |
class | SignalHandler |
Manages POSIX signals for the application. More... | |
struct | SimulationParameters |
struct | UserControlParameters |
A structure to hold user-defined control parameters for simulation settings. More... | |
Typedefs | |
template<typename T > | |
using | OptionalPtr = GlobalInitialiser::OptionalPtr<T> |
Functions | |
bool | check_results_file_name (Core::UserControlParameters ¶ms) |
void | exec (CaseData &&case_data) |
Start simulation. | |
std::optional< Core::CaseData > | load (const ExecInfo &exec, const UserControlParameters &¶ms, std::optional< Simulation::Feed::SimulationFeed > feed=std::nullopt) |
ExecInfo | runtime_init (int argc, char **argv, std::optional< std::size_t > force_run_id=std::nullopt) |
Initializes the runtime environment based on command-line arguments and simulation parameters. | |
std::ostream & | operator<< (std::ostream &stream, const UserControlParameters ¶ms) |
std::string | exporter_filename (const ExecInfo &exec, const SimulationParameters ¶ms) |
void | init_partial_exporter (Core::PartialExporter &partial_exporter, const CaseData &case_data) |
Core component to perform simulation.
using Core::OptionalPtr = GlobalInitialiser::OptionalPtr<T> |
bool Core::check_results_file_name | ( | Core::UserControlParameters & | params | ) |
void Core::exec | ( | CaseData && | case_data | ) |
Start simulation.
std::string Core::exporter_filename | ( | const ExecInfo & | exec, |
const SimulationParameters & | params ) |
void Core::init_partial_exporter | ( | Core::PartialExporter & | partial_exporter, |
const CaseData & | case_data ) |
std::optional< Core::CaseData > Core::load | ( | const ExecInfo & | exec, |
const UserControlParameters && | params, | ||
std::optional< Simulation::Feed::SimulationFeed > | feed = std::nullopt ) |
std::ostream & Core::operator<< | ( | std::ostream & | stream, |
const UserControlParameters & | params ) |
ExecInfo Core::runtime_init | ( | int | argc, |
char ** | argv, | ||
std::optional< std::size_t > | force_run_id = std::nullopt ) |
Initializes the runtime environment based on command-line arguments and simulation parameters.
This function sets up the necessary runtime environment for the simulation by:
The function uses the provided command-line arguments and simulation parameters to configure the runtime environment accordingly.
argc | The number of command-line arguments. |
argv | The array of command-line arguments. settings for the simulation. |
ExecInfo
object containing details about the initialized runtime environment, including execution context and other relevant metadata.