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
  • Loading branch information
eisenhauer authored Jun 8, 2023
2 parents 3bd4cff + 32eb32b commit 7bd34be
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 7bd34be

Please sign in to comment.