Commit 3c3caaa9 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix incorrect PIO role computation.

parent e9b6611f
...@@ -117,7 +117,7 @@ cdiPioCSRBalanced(MPI_Comm commSuper, int IOMode, int nProcsIO) ...@@ -117,7 +117,7 @@ cdiPioCSRBalanced(MPI_Comm commSuper, int IOMode, int nProcsIO)
if (commRank == commSize - 1) if (commRank == commSize - 1)
role = specialRole; role = specialRole;
else if (commRank <= clientsPerCollectorMax * (nProcsIO - 1 - rest)) else if (commRank <= clientsPerCollectorMax * (nProcsIO - 1 - rest))
role = (commRank + 1 % (clientsPerCollectorMax + 1)) != 0 role = ((commRank + 1) % (clientsPerCollectorMax + 1)) != 0
? PIO_ROLE_CLIENT : collType; ? PIO_ROLE_CLIENT : collType;
else else
role = ((commRank - clientsPerCollectorMax * (nProcsIO - 1 - rest) + 1) role = ((commRank - clientsPerCollectorMax * (nProcsIO - 1 - rest) + 1)
......
Supports Markdown
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