Skip to content

Commit

Permalink
Merge pull request ornladios#3657 from eisenhauer/SpanAppend
Browse files Browse the repository at this point in the history
Allow Span in files opened for Append

(cherry picked from commit 7bd34be)
  • Loading branch information
eisenhauer authored and dmitry-ganyushin committed Jul 4, 2023
1 parent 46b4479 commit 35ee2f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/adios2/core/Engine.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ template <class T>
typename Variable<T>::Span &Engine::Put(Variable<T> &variable,
const bool initialize, const T &value)
{
CheckOpenModes({{Mode::Write}}, " for variable " + variable.m_Name +
", in call to Variable<T>::Span Put");
CheckOpenModes({{Mode::Write, Mode::Append}},
" for variable " + variable.m_Name +
", in call to Variable<T>::Span Put");
if (!variable.m_Operations.empty())
{
helper::Throw<std::invalid_argument>(
Expand Down

0 comments on commit 35ee2f1

Please sign in to comment.