Skip to content

Commit

Permalink
Merge pull request #4065 from pnorbert/fix-stream-flush2
Browse files Browse the repository at this point in the history
do not flush io and adios in read mode. BP5 reader does not like it.
  • Loading branch information
pnorbert committed Mar 2, 2024
2 parents 220034e + 12d25fa commit e38e07f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/adios2/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,10 @@ def close(self):
"""
self._engine.close()
self._engine = None
self._io.flush_all()
if not self._read_mode:
self._io.flush_all()
self._adios.flush_all()
self._io = None
self._adios.flush_all()
self._adios = None

def current_step(self):
Expand Down

0 comments on commit e38e07f

Please sign in to comment.