diff --git a/examples/heatTransfer/read/heatRead_adios2.cpp b/examples/heatTransfer/read/heatRead_adios2.cpp
index 576e9d3624d4afcad5f8c3350cdab95c6470945e..b74c0edfa6f4019dcd587d63d7b8724af1600ab2 100644
--- a/examples/heatTransfer/read/heatRead_adios2.cpp
+++ b/examples/heatTransfer/read/heatRead_adios2.cpp
@@ -95,8 +95,8 @@ int main(int argc, char *argv[])
     // 1D decomposition of the columns, which is inefficient for reading!
     std::vector<uint64_t> readsize({gndx, gndy / nproc});
     std::vector<uint64_t> offset({0LL, rank * readsize[1]});
-    std::vector<size_t> readsize_size_t({gndx, gndy / nproc});
-    std::vector<size_t> offset_size_t({0LL, rank * readsize[1]});
+    adios2::Dims readsize_size_t({gndx, gndy / nproc});
+    adios2::Dims offset_size_t({0LL, rank * readsize[1]});
     if (rank == nproc - 1)
     {
         // last process should read all the rest of columns