message: fixed a bug in ssc test that fails when mpi size is large
diff: @@ -207,8 +207,8 @@ void Reader(const Dims &shape, const Dims &start, const Dims &count,
  adios2::Dims startTmp = start;
  adios2::Dims countTmp = count;
  - startTmp[1] = mpiRank * 2;
  - countTmp[1] = 1;
  + startTmp[0] = mpiRank * 2;
  + countTmp[0] = 1;
  bpChars.SetSelection({startTmp, countTmp});
  bpUChars.SetSelection({startTmp, countTmp});
  bpShorts.SetSelection({startTmp, countTmp});
  @@ -250,8 +250,8 @@ void Reader(const Dims &shape, const Dims &start, const Dims &count,
  VerifyData(myDComplexes.data(), currentStep, startTmp, countTmp,
  shape, mpiRank);
  - startTmp[1] = mpiRank * 2 + 1;
  - countTmp[1] = 1;
  + startTmp[0] = mpiRank * 2 + 1;
  + countTmp[0] = 1;
  bpChars.SetSelection({startTmp, countTmp});
  bpUChars.SetSelection({startTmp, countTmp});
  bpShorts.SetSelection({startTmp, countTmp});
  @@ -309,6 +309,44 @@ void Reader(const Dims &shape, const Dims &start, const Dims &count,
  }
  TEST_F(SscEngineTest, TestSscReaderMultiblock)
  +{
  + {
  + std::string filename = "TestSscReaderMultiblockNaive";
  + adios2::Params engineParams = {{"Verbose", "0"},
  + {"EngineMode", "naive"}};
  +
  + int worldRank, worldSize;
  + MPI_Comm_rank(MPI_COMM_WORLD, &worldRank);
  + MPI_Comm_size(MPI_COMM_WORLD, &worldSize);
  + int mpiGroup = worldRank / (worldSize / 2);
  + MPI_Comm_split(MPI_COMM_WORLD, mpiGroup, worldRank, &mpiComm);
  +
  + MPI_Comm_rank(mpiComm, &mpiRank);
  + MPI_Comm_size(mpiComm, &mpiSize);
  +
  + size_t steps = 100;
  +
  + if (mpiGroup == 0)
  + {
  + Dims shape = {(size_t)mpiSize * 2, 10};
  + Dims start = {(size_t)mpiRank * 2, 0};
  + Dims count = {1, 10};
  + Writer(shape, start, count, steps, engineParams, filename);
  + }
  +
  + std::this_thread::sleep_for(std::chrono::milliseconds(1));
  +
  + if (mpiGroup == 1)
  + {
  + Dims shape = {(size_t)mpiSize * 2, 10};
  + Dims start = {0, 0};
  + Dims count = {(size_t)mpiSize * 2, 10};
  + Reader(shape, start, count, steps, engineParams, filename);
  + }
  +
  + MPI_Barrier(MPI_COMM_WORLD);
  + }
  +
  {
  std::string filename = "TestSscReaderMultiblock";
  adios2::Params engineParams = {{"Verbose", "0"}};
  @@ -344,6 +382,7 @@ TEST_F(SscEngineTest, TestSscReaderMultiblock)
  MPI_Barrier(MPI_COMM_WORLD);
  }
  +}
  int main(int argc, char **argv)
  {
  