if(i != -1) {
*index = map[i];
finish_wait(&requests[*index], status);
+ requests[*index] = MPI_REQUEST_NULL;
flag = 1;
}
}else{
if (i != -1) {
index = map[i];
finish_wait(&requests[index], status);
+ requests[index] = MPI_REQUEST_NULL;
}
}
xbt_free(map);