Fixed the bug in the read check code

master
John Bent 2017-10-25 07:57:50 -06:00
parent 53113536e4
commit 34cb63c1b7
1 changed files with 1 additions and 1 deletions

View File

@ -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 */