From 3a4e69403ac5417b6009233d2e5effbdff9483f9 Mon Sep 17 00:00:00 2001
From: Norbert Podhorszki <pnorbert@ornl.gov>
Date: Wed, 22 Mar 2017 08:55:11 -0400
Subject: [PATCH] fix selection use in example

---
 doc/API_design/API_example_use.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/API_design/API_example_use.cpp b/doc/API_design/API_example_use.cpp
index 04b198466..ce85124cb 100644
--- a/doc/API_design/API_example_use.cpp
+++ b/doc/API_design/API_example_use.cpp
@@ -92,7 +92,7 @@ int main( int argc, char* argv[])
         // Engine will copy this bounding box from the data pointer into the buffer. Size of the bounding box should match the
         // "space" selection which was given above. Default memspace is the full selection.
         adios::Selection memspace = adios.SelectionBoundingBox( {1,NX}, {0,1} ); // local dims and offsets; both as list
-        var2D.SetMemorySelection( sel );
+        var2D.SetMemorySelection( memspace );
 
         writer->Write<double>( var2D, *Temperature );
 
-- 
GitLab