From ce5549cc047f73f3f0e61a8ebfead2b7c777a08e Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Fri, 7 Oct 2022 13:43:19 +0200 Subject: [PATCH] [App] Added return code --- Applications/Python/ogs.simulator/ogs_python_module.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Applications/Python/ogs.simulator/ogs_python_module.cpp b/Applications/Python/ogs.simulator/ogs_python_module.cpp index ab4103c7c65..bdbaba4f3ed 100644 --- a/Applications/Python/ogs.simulator/ogs_python_module.cpp +++ b/Applications/Python/ogs.simulator/ogs_python_module.cpp @@ -30,7 +30,7 @@ std::unique_ptr<Simulation> simulation; -void initOGS(std::vector<std::string>& argv_str) +int initOGS(std::vector<std::string>& argv_str) { int argc = argv_str.size(); char** argv = new char*[argc]; @@ -72,9 +72,11 @@ void initOGS(std::vector<std::string>& argv_str) } INFO("OpenGeoSys is now initialized."); + + return ogs_status; } -void executeSimulation() +int executeSimulation() { BaseLib::RunTime run_time; @@ -104,6 +106,8 @@ void executeSimulation() auto const time_str = BaseLib::formatDate(end_time); INFO("OGS terminated on {:s}.", time_str); } + + return ogs_status; } double currentTime() -- GitLab