diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2018-08-13 09:26:34 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2018-08-13 09:26:34 +0200 |
commit | 7097a4eaa0a32e0d02207521941157bda8968b05 (patch) | |
tree | d4b1258d2601508182f8ff8b992d7e9431a7d20a /openEMS/main.cpp | |
parent | aa7abb5c97c20b34f159886dfc523dd8198fef98 (diff) |
New upstream version 0.0.35+ds.1
Diffstat (limited to 'openEMS/main.cpp')
-rw-r--r-- | openEMS/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openEMS/main.cpp b/openEMS/main.cpp index 1d03481..8a8000f 100644 --- a/openEMS/main.cpp +++ b/openEMS/main.cpp @@ -68,8 +68,12 @@ int main(int argc, char *argv[]) } int EC = FDTD.ParseFDTDSetup(argv[1]); + if(!EC) { + cerr << "openEMS - ParseFDTDSetup failed." << endl; + exit(1); + } EC = FDTD.SetupFDTD(); - if (EC) return EC; + if (EC) exit(EC); FDTD.RunFDTD(); #ifdef MPI_SUPPORT @@ -77,5 +81,5 @@ int main(int argc, char *argv[]) MPI::Finalize(); #endif - return 0; + exit(0); } |