X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/01d2ec474c4c1828c229830ba4e4961de5f0527d..73ce0df461cf8867f8002555273f54f7a8fb2d2f:/src/smpi/mpi/smpi_request.cpp diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 6287d7c027..88c539ea51 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -541,7 +541,6 @@ int Request::test(MPI_Request * request, MPI_Status * status, int* flag) { if(smpi_test_sleep > 0) simcall_process_sleep(nsleeps*smpi_test_sleep); - MPI_Status* mystatus; Status::empty(status); *flag = 1; if (((*request)->flags_ & MPI_REQ_PREPARED) == 0) { @@ -560,6 +559,7 @@ int Request::test(MPI_Request * request, MPI_Status * status, int* flag) { if (*flag) { finish_wait(request,status); if (*request != MPI_REQUEST_NULL && ((*request)->flags_ & MPI_REQ_GENERALIZED)){ + MPI_Status* mystatus; if(status==MPI_STATUS_IGNORE){ mystatus=new MPI_Status(); Status::empty(mystatus); @@ -622,7 +622,6 @@ int Request::testany(int count, MPI_Request requests[], int *index, int* flag, M int i; *flag = 0; int ret = MPI_SUCCESS; - MPI_Status* mystatus; *index = MPI_UNDEFINED; std::vector map; /** Maps all matching comms back to their location in requests **/ @@ -652,6 +651,7 @@ int Request::testany(int count, MPI_Request requests[], int *index, int* flag, M } else { finish_wait(&requests[*index],status); if (requests[*index] != MPI_REQUEST_NULL && (requests[*index]->flags_ & MPI_REQ_GENERALIZED)){ + MPI_Status* mystatus; if(status==MPI_STATUS_IGNORE){ mystatus=new MPI_Status(); Status::empty(mystatus);