84 {
85 INFO(
"OGSSimulation::OGSSimulation(std::vector<std::string>&)");
86
87 int argc = argv_str.size();
88 char** argv = new char*[argc];
89 for (int i = 0; i < argc; ++i)
90 {
91 argv[i] = argv_str[i].data();
92 }
93
95 try
96 {
98 }
99 catch (TCLAP::ArgException const& e)
100 {
101 ERR(
"Parsing the OGS commandline failed: {}", e.what());
102
103
104 throw(e);
105 }
106 catch (TCLAP::ExitException const& e)
107 {
108 throw(e);
109 }
110
112
114 "This is OpenGeoSys-6 version {:s}. Log version: {:d}, Log level: "
115 "{:s}.",
117
119
120 {
121 auto const start_time = std::chrono::system_clock::now();
123
124 INFO(
"OGS starts on {:s} in serial mode / Python embedded mode.",
125 time_str);
126 }
127 try
128 {
129 simulation = std::make_unique<Simulation>(argc, argv);
137 }
138 catch (std::exception& e)
139 {
143 throw(e);
144 }
145 INFO(
"OpenGeoSys is now initialized.");
146 }
CommandLineArguments parseCommandLineArguments(int argc, char *argv[], bool const exit_on_exception)
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
std::unique_ptr< Simulation > simulation
void initOGSLogger(std::string const &log_level)
std::string formatDate(std::chrono::time_point< std::chrono::system_clock > const &time)
void unsetProjectDirectory()
Unsets the project directory.
bool createOutputDirectory(std::string const &dir)
GITINFOLIB_EXPORT const std::string ogs_version
bool reference_path_is_set
std::string reference_path
std::vector< std::string > xml_patch_file_names