From 57ea97a1c5b186d3510af2562e6bd28c972e4e48 Mon Sep 17 00:00:00 2001
From: Norbert Podhorszki <pnorbert@ornl.gov>
Date: Mon, 8 May 2017 17:27:41 -0400
Subject: [PATCH] fix heat transfer read to read all steps at once

---
 examples/heatTransfer/read/heatRead_adios2.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/heatTransfer/read/heatRead_adios2.cpp b/examples/heatTransfer/read/heatRead_adios2.cpp
index ef37e6fdd..0bc88e911 100644
--- a/examples/heatTransfer/read/heatRead_adios2.cpp
+++ b/examples/heatTransfer/read/heatRead_adios2.cpp
@@ -105,8 +105,8 @@ int main(int argc, char *argv[])
     double *T = new double[vT->GetNSteps() * readsize[0] * readsize[1]];
 
     // Create a 2D selection for the subset
-    adios::SelectionBoundingBox sel(offset, readsize);
-    vT->SetSelection(sel);
+    vT->SetSelection(offset, readsize);
+    vT->SetStepSelection(0, vT->GetNSteps());
 
     // Arrays are read by scheduling one or more of them
     // and performing the reads at once
-- 
GitLab