From 34cb63c1b7b62a064ea9966f834bce4116a0dd9f Mon Sep 17 00:00:00 2001 From: John Bent Date: Wed, 25 Oct 2017 07:57:50 -0600 Subject: [PATCH] Fixed the bug in the read check code --- src/ior.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ior.c b/src/ior.c index 5319a57..ebc2742 100755 --- a/src/ior.c +++ b/src/ior.c @@ -2145,7 +2145,7 @@ static void TestIoSys(IOR_test_t *test) } } if(operation_flag == READCHECK){ - FillBuffer(ioBuffers.readCheckBuffer, params, 0, rank + rankOffset); + FillBuffer(ioBuffers.readCheckBuffer, params, 0, (rank + rankOffset) % params->numTasks); } /* Using globally passed rankOffset, following function generates testFileName to read */