From: Ruben Undheim Date: Mon, 21 Nov 2016 00:45:35 +0100 Subject: Don't exit from library --- openEMS/tools/array_ops.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openEMS/tools/array_ops.cpp b/openEMS/tools/array_ops.cpp index 8710b3c..7100f9a 100644 --- a/openEMS/tools/array_ops.cpp +++ b/openEMS/tools/array_ops.cpp @@ -73,7 +73,7 @@ f4vector* Create1DArray_v4sf(const unsigned int numLines) if (MEMALIGN( (void**)&array, 16, sizeof(typeof(f4vector))*numLines )) { cerr << "cannot allocate aligned memory" << endl; - exit(3); + return 0; } for (unsigned int pos=0; pos