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

scda: Write and read inline file sections #199

Merged
merged 28 commits into from
Aug 1, 2024

Conversation

tim-griesbach
Copy link
Collaborator

@tim-griesbach tim-griesbach commented Jul 25, 2024

scda: Write and read inline file sections

This PR continues the implementation of the scda file format (cf. #197 and #193) by implementing fwrite_inline, fread_section_header for the case of an inline file section and fread_inline_data. Moreover, this PR contains in particular the following changes:

  • Introduce a static function to generate the part of headers that always have the same structure,
  • track the last fread_section_header call in the file context to be able to generate a suitable error code if the user does not follow the required reading workflow,
  • generalize the macros for non-collective errors to handle non-collective code on a fixed but arbitrary rank and
  • basic tests of the new scda functions.

@cburstedde cburstedde merged commit 0f80c61 into cburstedde:develop Aug 1, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants