Skip to content

Truncate option for Engine Open mode Append #2775

@franzpoeschel

Description

@franzpoeschel

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:

  1. The output file needs to be opened in Append mode
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions