Skip to content

Commit

Permalink
Merge pull request #2370 from NAThompson/append_mode_finished
Browse files Browse the repository at this point in the history
Fix documentation that append mode works with BP4 engine.
  • Loading branch information
pnorbert authored Jul 14, 2020
2 parents 4441b55 + 6751221 commit d2ab851
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bindings/CXX11/adios2/cxx11/IO.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class IO
* Open an Engine to start heavy-weight input/output operations.
* @param name unique engine identifier
* @param mode adios2::Mode::Write, adios2::Mode::Read, or
* adios2::Mode::Append (not yet support)
* adios2::Mode::Append (BP4 only)
* @return engine object
*/
Engine Open(const std::string &name, const Mode mode);
Expand All @@ -265,7 +265,7 @@ class IO
* MPI Collective function as it calls MPI_Comm_dup
* @param name unique engine identifier within IO
* @param mode adios2::Mode::Write, adios2::Mode::Read, or
* adios2::Mode::Append (not yet support)
* adios2::Mode::Append (BP4 only)
* @param comm new communicator other than ADIOS object's communicator
* @return engine object
*/
Expand Down
5 changes: 3 additions & 2 deletions source/adios2/engine/bp3/BP3Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ void BP3Writer::InitBPBuffer()
{
if (m_OpenMode == Mode::Append)
{
throw std::invalid_argument(
"ADIOS2: OpenMode Append hasn't been implemented, yet");
throw std::invalid_argument("ADIOS2: Mode::Append is only available in "
"BP4; it is not implemented "
"for BP3 files.");
// TODO: Get last pg timestep and update timestep counter in
}
else
Expand Down

0 comments on commit d2ab851

Please sign in to comment.