Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SCR calls to initWrite() and endWrite() in the openPMD plugin #1

Open
wants to merge 1 commit into
base: scr
Choose a base branch
from

Conversation

franzpoeschel
Copy link

@franzpoeschel franzpoeschel commented Jul 29, 2022

Hey Adam,
this PR moves the (currently commented) SCR_start_output and SCR_complete_output calls to the initWrite and endWrite functions in the openPMDWriter.
This means that they will be called for every checkpoint which I assume is intended? Note that the Series object will stay open during the entire simulation, which is necessary e.g. for streaming workflows. So, without this PR both functions would be called exactly once during a simulation.

What would happen if these functions are called, but no SCR output is written in-between? This might happen if we write normal (non-checkpoint) output or use any other backend of ADIOS2/openPMD, such as HDF5 or Streaming.

(Note: I'm on holidays for the coming two weeks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant