Skip to content

Commit 5c54511

Browse files
committed
Bugfix ior shuffle -Z -Z #512, thanks celrick
1 parent 68ef955 commit 5c54511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ior.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ static void TestIoSys(IOR_test_t *test)
13871387
rankOffsets[tgt] = rankOffsets[i];
13881388
rankOffsets[i] = tmp;
13891389
}
1390-
rankOffset = rankOffsets[rank];
1390+
rankOffset = rankOffsets[rank] - rank; // must subtract as we talk about rankOffset and not the actual rank!
13911391
free(rankOffsets);
13921392
}
13931393
/* Using globally passed rankOffset, following function generates testFileName to read */

0 commit comments

Comments
 (0)