Skip to content

Commit 6fdd902

Browse files
committed
romio: Update ADIOI_R_Exchange_data function
Squash compiler warning due to whitespace/brace problems. The code block from lines 829-839 was improperly indented, which led to both the code being confusing and a compiler warning. Comparing this code to the current version in the MPICH repo made it clear that the code was simply improperly indented. Fixing the indentation both makes the code readable and squashes the compiler warning. Signed-off-by: Maxwell Coil <[email protected]> (cherry picked from commit 8c237e2)
1 parent 84a67bd commit 6fdd902

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ompi/mca/io/romio321/romio/adio/common/ad_read_coll.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -826,17 +826,17 @@ static void ADIOI_R_Exchange_data(ADIO_File fd, void *buf, ADIOI_Flatlist_node
826826
if (recv_size[i]) recv_buf[i] =
827827
(char *) ADIOI_Malloc(recv_size[i]);
828828

829-
j = 0;
830-
for (i=0; i < nprocs; i++)
831-
if (recv_size[i]) {
832-
MPI_Irecv(recv_buf[i], recv_size[i], MPI_BYTE, i,
833-
myrank+i+100*iter, fd->comm, requests+j);
834-
j++;
829+
j = 0;
830+
for (i=0; i < nprocs; i++)
831+
if (recv_size[i]) {
832+
MPI_Irecv(recv_buf[i], recv_size[i], MPI_BYTE, i,
833+
myrank+i+100*iter, fd->comm, requests+j);
834+
j++;
835835
#ifdef RDCOLL_DEBUG
836-
DBG_FPRINTF(stderr, "node %d, recv_size %d, tag %d \n",
837-
myrank, recv_size[i], myrank+i+100*iter);
836+
DBG_FPRINTF(stderr, "node %d, recv_size %d, tag %d \n",
837+
myrank, recv_size[i], myrank+i+100*iter);
838838
#endif
839-
}
839+
}
840840
}
841841

842842
/* create derived datatypes and send data */

0 commit comments

Comments
 (0)