Changeset 1130 for XIOS/dev/dev_olga/src/buffer_client.cpp
- Timestamp:
- 05/15/17 15:00:24 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/buffer_client.cpp
r1077 r1130 74 74 int flag; 75 75 76 int error, errclass, len;77 char errstring[MPI_MAX_ERROR_STRING];78 79 76 if (pending) 80 77 { 81 78 traceOff(); 82 MPI_Errhandler_set(interComm,MPI_ERRORS_RETURN); 83 error=MPI_Test(&request, &flag, &status); 84 if (error != MPI_SUCCESS) 85 { 86 MPI_Error_class(error, &errclass); 87 MPI_Error_string(error, errstring, &len); 88 ERROR("MPI error class: ", <<errclass<<" MPI error "<<errstring ); 89 } 79 MPI_Test(&request, &flag, &status); 90 80 traceOn(); 91 81 if (flag == true) pending = false; … … 96 86 if (count > 0) 97 87 { 98 MPI_Errhandler_set(interComm,MPI_ERRORS_RETURN); 99 error = MPI_Issend(buffer[current], count, MPI_CHAR, serverRank, 20, interComm, &request); 100 if (error != MPI_SUCCESS) 101 { 102 MPI_Error_class(error, &errclass); 103 MPI_Error_string(error, errstring, &len); 104 ERROR("MPI error class: ", <<errclass<<" MPI error "<<errstring ); 105 } 88 MPI_Issend(buffer[current], count, MPI_CHAR, serverRank, 20, interComm, &request); 106 89 pending = true; 107 90 if (current == 1) current = 0;
Note: See TracChangeset
for help on using the changeset viewer.