-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to close a file (#746)
* Add IOTask for closing file * Add API calls for Iteration::close * Add closeFile to ADIOS2 backend * remove skipFlush and other wrongly commited lines * Add test * add back skipFlush * Invalidate file in ADIOS2 after closing * Remove superfluous ; after function * Make Iteration::close synchronous by default Optional parameter `bool flush = true` * Add closeFile operation to JSON backend * Remove name parameter from CLOSE_FILE task * Fix name shadowing * [wip] close_file for ADIOS1 somehow still fails when creating the second iteration * Temporary workaround for ADIOS1 * Implement file closing in HDF5 * change erase order * run a simplified test for ADIOS1 * Split closed into closed and closedByWriter This enables closing iterations in read-mode, too. closedByWriter will be mainly useful in streaming mode, which this commit is preparing * Fix ADIOS1 test * cleanup * Throw if flushing a closed iteration that has been accessed * Add verifyClosed * Close files in read mode too * Test throwing upon accessing an iteration post closing * Also do sanity-checks in group-based mode This is currently not necessary, since closing an iteration in group-based mode is a no-op. It will become relevant in streaming-based mode, where closing an iteration means discarding its corresponding data packet. * Rename m_closed* members of Iteration and update docu * Unify m_closed(Backend|Frontend) into common enum * Flush only the closed iteration upon Iteration::close * Undo unnecessary whitespace changes * Two small fixes in ADIOS1 IO Handler 1) Remove debugging output 2) Delete buffered attribute writes after performing them * Prevent throwing in destructor in close_iteration_test * Do not use boolean attributes * Revert "Prevent throwing in destructor in close_iteration_test" This reverts commit 1490db6. * Add some documentation * Add reviewer's suggestions Also fix a bug in group-based mode * Expose Iteration::close to Python API * Run simplified test for ADIOS1 in Python Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
- Loading branch information
1 parent
27e47de
commit 0f38504
Showing
24 changed files
with
754 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.