diff --git a/Code-C/getArray.c b/Code-C/getArray.c index 7389042..9b78b07 100644 --- a/Code-C/getArray.c +++ b/Code-C/getArray.c @@ -73,7 +73,7 @@ long **getRawDataArray(char* rawDataFileName , int N , int M){ p = get(N, M); fillArrayWithRawData(rawDataFileName,p ,N, M); if(checkArrayFullyFill(p,N,M)){ - clearRawData(N); + //clearRawData(N); return p; } else{ diff --git a/Code-C/main b/Code-C/main index 31dc9ce..942736d 100755 Binary files a/Code-C/main and b/Code-C/main differ diff --git a/Code-C/main.c b/Code-C/main.c index bccc3f9..2aa513f 100644 --- a/Code-C/main.c +++ b/Code-C/main.c @@ -23,11 +23,11 @@ double invTimeBandWidth = 0; void *threadCalcul(void *vargp){ Pqueue rawDataQueue = firstRawDataQueue; + char* fileName; while(rawDataWriteFlag){ while(queueGetNextE(rawDataQueue) != NULL){ - char* fileName = queueGetTabChar(rawDataQueue); - //queuePrintE(rawDataQueue); - printf("%s\n",fileName); + rawDataQueue = queueGetNextE(rawDataQueue); + fileName = queueGetTabChar(rawDataQueue); power(fileName,nRow,nCol,period,invTimeBandWidth); /*remove(queueGetTabChar(rawDataQueue)); rawDataQueue = queueRmFrstE(rawDataQueue);*/ @@ -36,6 +36,7 @@ void *threadCalcul(void *vargp){ } int main(int argc , char** argv){ + rawDataWriteFlag = true; period = 1 / freqEch;