From ec26e29b95f45e41add9106b21e507f26d703f1e Mon Sep 17 00:00:00 2001
From: wfg <wfg@mbpwfg.ornl.gov>
Date: Mon, 13 Feb 2017 11:06:13 -0500
Subject: [PATCH] Fixing adding dimNx to  MyDoubles in helloWriter_OOP.cpp

---
 examples/hello/writer/helloWriter_OOP.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/hello/writer/helloWriter_OOP.cpp b/examples/hello/writer/helloWriter_OOP.cpp
index 31b07a80f..af6cebb40 100644
--- a/examples/hello/writer/helloWriter_OOP.cpp
+++ b/examples/hello/writer/helloWriter_OOP.cpp
@@ -41,7 +41,7 @@ int main( int argc, char* argv [] )
         adios::Group& ioGroup = adios.DeclareGroup( "ioGroup" );
         adios::Var ioNx = ioGroup.DefineVariable<unsigned int>( "Nx" );
         adios::Dims dimNx = ioGroup.SetDimensions( {ioNx} );
-        adios::Var ioMyDoubles = ioGroup.DefineVariable<double>( "myDoubles" );
+        adios::Var ioMyDoubles = ioGroup.DefineVariable<double>( "myDoubles", dimNx );
 
         //add transform to variable in group...not executed (just testing API)
         adios::Transform bzip2 = adios::transform::BZIP2( );
-- 
GitLab