X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6032e02b3443eff7869d98ade7cdf6fe536b09aa..684cdb5583dacd359d0a1e6a47db259dbc82713b:/teshsuite/smpi/mpich3-test/comm/dupic.c diff --git a/teshsuite/smpi/mpich3-test/comm/dupic.c b/teshsuite/smpi/mpich3-test/comm/dupic.c index e3712769fa..974d0f06d5 100644 --- a/teshsuite/smpi/mpich3-test/comm/dupic.c +++ b/teshsuite/smpi/mpich3-test/comm/dupic.c @@ -14,7 +14,7 @@ int main(int argc, char *argv[]) MPI_Comm comm, dupcomm, dupcomm2; MPI_Request rreq[2]; int count; - int indicies[2]; + int indices[2]; int r1buf, r2buf, s1buf, s2buf; int rank, isLeft; @@ -40,12 +40,12 @@ int main(int argc, char *argv[]) MPI_Irecv(&r1buf, 1, MPI_INT, 0, 0, dupcomm, &rreq[0]); MPI_Irecv(&r2buf, 1, MPI_INT, 0, 0, comm, &rreq[1]); MPI_Send(&s2buf, 1, MPI_INT, 0, 0, comm); - MPI_Waitsome(2, rreq, &count, indicies, MPI_STATUSES_IGNORE); - if (count != 1 || indicies[0] != 1) { + MPI_Waitsome(2, rreq, &count, indices, MPI_STATUSES_IGNORE); + if (count != 1 || indices[0] != 1) { /* The only valid return is that exactly one message * has been received */ errs++; - if (count == 1 && indicies[0] != 1) { + if (count == 1 && indices[0] != 1) { printf("Error in context values for intercomm\n"); } else if (count == 2) { @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) int i; printf("Error: count = %d", count); for (i = 0; i < count; i++) { - printf(" indicies[%d] = %d", i, indicies[i]); + printf(" indices[%d] = %d", i, indices[i]); } printf("\n"); }