struct s_smpi_mpi_request;
typedef struct s_smpi_mpi_request *MPI_Request;
-#define MPI_REQUEST_NULL NULL
+#define MPI_REQUEST_NULL ((MPI_Request)NULL)
#define MPI_FORTRAN_REQUEST_NULL -1
MPI_CALL(XBT_PUBLIC(int), MPI_Init, (int *argc, char ***argv));
flag = simcall_comm_test((*request)->action);
if(flag) {
finish_wait(request, status);
- request=MPI_REQUEST_NULL;
+ *request = MPI_REQUEST_NULL;
}else{
smpi_empty_status(status);
}
#endif
finish_wait(request, status);
- request=MPI_REQUEST_NULL;
+ *request = MPI_REQUEST_NULL;
// FIXME for a detached send, finish_wait is not called:
}
int retval = 0;
smpi_bench_end();
- if (request == MPI_REQUEST_NULL || flag == NULL) {
+ if (*request == MPI_REQUEST_NULL || flag == NULL) {
retval = MPI_ERR_ARG;
} else if (*request == MPI_REQUEST_NULL) {
*flag= TRUE;