Commit 6577a26e authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

small updated

parent d40ea75e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,6 +22,6 @@ if (DCA_HAVE_ADIOS2)
  if (DCA_HAVE_MPI)
    dca_add_gtest(adios2_parallelIO_test
      MPI MPI_NUMPROC 4
      LIBS dca_adios2 adios2::adios2 parallel_mpi_concurrency;function)
      LIBS dca_adios2 adios2::adios2 parallel_mpi_concurrency;function;parallel_util)
  endif()
endif()
+5 −2
Original line number Diff line number Diff line
@@ -43,9 +43,8 @@ TYPED_TEST(ADIOS2ParallelIOTest, FunctionReadWrite) {
  size_t dmn_size = 1;
  for (int l = 0; l < f1.signature(); ++l)
    dmn_size *= f1[l];

  int val = rank * dmn_size;
  for (auto& x : f1)
    x = ++val;

  uint64_t start = 0;
  uint64_t end = 0;
@@ -53,6 +52,10 @@ TYPED_TEST(ADIOS2ParallelIOTest, FunctionReadWrite) {
  dca::parallel::util::getComputeRange(concurrency_ptr->id(), concurrency_ptr->number_of_processors(),
                                     f1.size(), start, end);

  // only set this ranks values
  for (int i = start; i <= end; ++i)
    f1.data()[i] = ++val;
    
  {
    dca::io::ADIOS2Writer writer(concurrency_ptr);
    writer.open_file("test_func_" + typeStr + ".bp", true);