From 86ef1c9dbdf34c8081a4736ba531bb12f673958e Mon Sep 17 00:00:00 2001 From: Thomas Jahns <jahns@dkrz.de> Date: Fri, 8 Apr 2016 14:28:23 +0000 Subject: [PATCH] Rename variable to prevent shadowing. --- src/pio_comm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pio_comm.c b/src/pio_comm.c index 370a26af4..61446e64b 100644 --- a/src/pio_comm.c +++ b/src/pio_comm.c @@ -116,19 +116,19 @@ pioInfoInit(pioInfo_t *p, MPI_Comm commGlob, int clientServerRole) int nProcsIO; { enum { numGlobSums = 4 }; - int temp[numGlobSums] = { + int iBuf[numGlobSums] = { isProcIO, (clientServerRole & PIO_ROLE_COLLECTOR), globRankOfGroupLeader[0], globRankOfGroupLeader[1] }; - xmpi(MPI_Allreduce(MPI_IN_PLACE, temp, numGlobSums, MPI_INT, MPI_SUM, + xmpi(MPI_Allreduce(MPI_IN_PLACE, iBuf, numGlobSums, MPI_INT, MPI_SUM, commGlob)); - p->sizePio = nProcsIO = temp[0]; + p->sizePio = nProcsIO = iBuf[0]; p->sizeCalc = p->sizeGlob - nProcsIO; - p->sizeColl = temp[1]; - globRankOfGroupLeader[0] = temp[2]; - globRankOfGroupLeader[1] = temp[3]; + p->sizeColl = iBuf[1]; + globRankOfGroupLeader[0] = iBuf[2]; + globRankOfGroupLeader[1] = iBuf[3]; } if (isProcIO) { -- GitLab