84 {
85 int argc = argv_str.size();
86 char** argv = new char*[argc];
87 for (int i = 0; i < argc; ++i)
88 {
89 argv[i] = argv_str[i].data();
90 }
91
93 try
94 {
96 }
97 catch (TCLAP::ArgException const& e)
98 {
99 std::cerr << "Parsing the OGS commandline failed: " << e.what()
100 << '\n';
101
102
103 throw(e);
104 }
105 catch (TCLAP::ExitException const& e)
106 {
107 throw(e);
108 }
109
111
112 DBUG(
"OGSSimulation::OGSSimulation(std::vector<std::string>&)");
113
115 "This is OpenGeoSys-6 version {:s}. Log version: {:d}, Log level: "
116 "{:s}.",
118
120
121 {
122 auto const start_time = std::chrono::system_clock::now();
124
125 INFO(
"OGS starts on {:s} in serial mode / Python embedded mode.",
126 time_str);
127 }
128 try
129 {
130 simulation = std::make_unique<Simulation>(argc, argv);
138 }
139 catch (std::exception& e)
140 {
144 throw(e);
145 }
146 INFO(
"OpenGeoSys is now initialized.");
147 }
CommandLineArguments parseCommandLineArguments(int argc, char *argv[], bool const exit_on_exception)
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
void DBUG(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