From 1d59ee7a9674d1eab9afbf5ff6ff2313a1786513 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Mon, 30 May 2016 18:14:55 +0200
Subject: [PATCH] [App] added error return code to OGS

---
 Applications/CLI/ogs.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp
index 6eed82449b3..16d95f119db 100644
--- a/Applications/CLI/ogs.cpp
+++ b/Applications/CLI/ogs.cpp
@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
     INFO("Solve processes.");
 
     auto& time_loop = project.getTimeLoop();
-    time_loop.loop(project);
+    bool solver_succeeded = time_loop.loop(project);
 
-    return 0;
+    return solver_succeeded ? EXIT_SUCCESS : EXIT_FAILURE;
 }
-- 
GitLab