diff options
Diffstat (limited to 'src/auxiliaryFunctions/find/zfinda.c')
-rw-r--r-- | src/auxiliaryFunctions/find/zfinda.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/auxiliaryFunctions/find/zfinda.c b/src/auxiliaryFunctions/find/zfinda.c index 1a98e3b3..f9c3f970 100644 --- a/src/auxiliaryFunctions/find/zfinda.c +++ b/src/auxiliaryFunctions/find/zfinda.c @@ -15,7 +15,10 @@ void zfinda(doubleComplex* z, int size, double *out, int* indiceOut) { int i = 0; indiceOut[1]=0; - + + /* if out is empty */ + out[0]=-1; + for (i = 0; i < size ; ++i) { if (zreals(z[i]) != 0 || zimags(z[i]) != 0) { out[indiceOut[1]] = (double)(i+1); |