Skip to content
Snippets Groups Projects
Commit 86ef1c9d authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Rename variable to prevent shadowing.

parent 528bb5dc
No related branches found
No related tags found
No related merge requests found
...@@ -116,19 +116,19 @@ pioInfoInit(pioInfo_t *p, MPI_Comm commGlob, int clientServerRole) ...@@ -116,19 +116,19 @@ pioInfoInit(pioInfo_t *p, MPI_Comm commGlob, int clientServerRole)
int nProcsIO; int nProcsIO;
{ {
enum { numGlobSums = 4 }; enum { numGlobSums = 4 };
int temp[numGlobSums] = { int iBuf[numGlobSums] = {
isProcIO, isProcIO,
(clientServerRole & PIO_ROLE_COLLECTOR), (clientServerRole & PIO_ROLE_COLLECTOR),
globRankOfGroupLeader[0], globRankOfGroupLeader[0],
globRankOfGroupLeader[1] 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)); commGlob));
p->sizePio = nProcsIO = temp[0]; p->sizePio = nProcsIO = iBuf[0];
p->sizeCalc = p->sizeGlob - nProcsIO; p->sizeCalc = p->sizeGlob - nProcsIO;
p->sizeColl = temp[1]; p->sizeColl = iBuf[1];
globRankOfGroupLeader[0] = temp[2]; globRankOfGroupLeader[0] = iBuf[2];
globRankOfGroupLeader[1] = temp[3]; globRankOfGroupLeader[1] = iBuf[3];
} }
if (isProcIO) if (isProcIO)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment