BioCMAMC-ST
rt_init.hpp
1#ifndef __RUNTIME_INIT_HPP__
2#define __RUNTIME_INIT_HPP__
3
4#include <chrono>
5#include <common/execinfo.hpp>
6#include <core/simulation_parameters.hpp>
7#include <ctime>
8#include <iomanip>
9#include <string>
10#include <string_view>
11
12// [[deprecated]]void set_n_thread_current_rank(int rank,
13// int size,
14// ExecInfo &info,
15// const Core::UserControlParameters &params)
16// noexcept;
17
26template <typename Stream>
27void
28append_date_time(Stream& stream) noexcept
29{
30 auto now
31 = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
32 stream << std::put_time(std::localtime(&now), "%Y-%m-%d %H:%M:%S");
33}
34
37void register_run(const ExecInfo& exec,
38 const Core::UserControlParameters& params) noexcept;
39
40#endif //__RUNTIME_INIT_HPP__
A structure to hold user-defined control parameters for simulation settings.
Definition simulation_parameters.hpp:24
Definition execinfo.hpp:21