Verified Commit ea57a411 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

rename local variable comm_data to avoid confusion

parent 495998ff
......@@ -228,8 +228,8 @@ extern "C" {
int MPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag,
MPI_Status* status){
checkBlackchannel();
Comm_data* comm_data = get_Comm_data(comm);
if(comm_data->revoked){
Comm_data* data = get_Comm_data(comm);
if(data->revoked){
PMPI_Comm_call_errhandler(comm, MPIX_ERR_REVOKED);
return MPIX_ERR_REVOKED;
}
......@@ -247,8 +247,8 @@ extern "C" {
int MPI_Improbe(int source, int tag, MPI_Comm comm, int* flag,
MPI_Message* message, MPI_Status* status){
checkBlackchannel();
Comm_data* comm_data = get_Comm_data(comm);
if(comm_data->revoked){
Comm_data* data = get_Comm_data(comm);
if(data->revoked){
PMPI_Comm_call_errhandler(comm, MPIX_ERR_REVOKED);
return MPIX_ERR_REVOKED;
}
......@@ -632,12 +632,12 @@ extern "C" {
result = MPI_SUCCESS;
for(int i = 0; i < count; i++){
if(array_of_requests[i] != MPI_REQUEST_NULL){
Comm_data* comm_data = request_comm_data[array_of_requests[i]];
if(comm_data->revoked){
Comm_data* data = request_comm_data[array_of_requests[i]];
if(data->revoked){
array_of_requests[i] = MPI_REQUEST_NULL;
array_of_statuses[i].MPI_ERROR = MPIX_ERR_REVOKED;
no_revoked++;
PMPI_Comm_call_errhandler(comm_data->comm, MPIX_ERR_REVOKED);
PMPI_Comm_call_errhandler(data->comm, MPIX_ERR_REVOKED);
result = MPI_ERR_IN_STATUS;
}
}else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment