-
Notifications
You must be signed in to change notification settings - Fork 139
Description
Why is this feature important?
Scenario:
- An application uses ADIOS for checkpointing and for regular output
- A new bp file is created per checkpoint
- Regular output keeps appending new steps to the same bp file
- Checkpointing frequency is lower than regular output checkpointing
Consequence: After restarting from a checkpoint:
- The output file needs to be opened in Append mode
- Some simulation steps are written for a second time
=> The output file will contain the same steps twice
Solution: Allow to truncate a number of last steps when opening a file for appending
What is the potential impact of this feature in the community?
ADIOS steps can be used more sensibly for output in simulations that use checkpointing
Is your feature request related to a problem? Please describe.
see above
Describe the solution you'd like and potential required effort
see above
effort depends on the file format
Describe alternatives you've considered and potential required effort
Alternative: Just accept that the output file will have some time steps twice. Required effort: Additional complexity in reading data produced by ADIOS
Additional context
Discussed offline with @pnorbert and @ax3l
openPMD/openPMD-api#1007