From c818fb31e5fc9c1a3d785c1328396a8c2f5e7921 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 20 Nov 2020 09:50:34 -0500 Subject: [PATCH] Returned Engines are not passed by reference. --- docs/user_guide/source/components/io.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/user_guide/source/components/io.rst b/docs/user_guide/source/components/io.rst index ae2355baa6..326b93ad34 100644 --- a/docs/user_guide/source/components/io.rst +++ b/docs/user_guide/source/components/io.rst @@ -203,24 +203,24 @@ The available modes are ``adios2::Mode::Read``, ``adios2::Mode::Write``, ``adios /** Signatures */ /** Provide a new MPI communicator other than from ADIOS->IO->Engine */ - adios2::Engine &adios2::IO::Open( const std::string &name, - const adios2::Mode mode, - MPI_Comm mpiComm ); + adios2::Engine adios2::IO::Open(const std::string &name, + const adios2::Mode mode, + MPI_Comm mpiComm ); /** Reuse the MPI communicator from ADIOS->IO->Engine \n or non-MPI serial mode */ - adios2::Engine &adios2::IO::Open(const std::string &name, - const adios2::Mode mode); + adios2::Engine adios2::IO::Open(const std::string &name, + const adios2::Mode mode); /** Examples */ /** Engine derived class, spawned to start Write operations */ - adios2::Engine& bpWriter = io.Open("myVector.bp", adios2::Mode::Write); + adios2::Engine bpWriter = io.Open("myVector.bp", adios2::Mode::Write); /** Engine derived class, spawned to start Read operations on rank 0 */ if( rank == 0 ) { - adios2::Engine& bpReader = io.Open("myVector.bp", + adios2::Engine bpReader = io.Open("myVector.bp", adios2::Mode::Read, MPI_COMM_SELF); }