Skip to content

Enable ncmpi_inq_header_size() to be called in define mode.#201

Merged
wkliao merged 1 commit intomasterfrom
inq_header
Dec 19, 2025
Merged

Enable ncmpi_inq_header_size() to be called in define mode.#201
wkliao merged 1 commit intomasterfrom
inq_header

Conversation

@wkliao
Copy link
Copy Markdown
Member

@wkliao wkliao commented Dec 19, 2025

This API returns the file header size with metadata defined by the time of the call. This information can be helpful to pick proper values for arguments h_minfree, v_align, v_minfree, r_align when calling ncmpi__enddef() to allocate a sufficiently large free space for file header extent and variable data sections to grow without moving data already stored in the file, i.e. when adding new variables, dimensions, or attributes.

Test program, tst_inq_header_size.c tests this change.

This API returns the file header size with metadata defined by the time
of the call. This information can be helpful to pick proper values for
arguments h_minfree, v_align, v_minfree, r_align when calling
ncmpi__enddef() to allocate a sufficiently large free space for file
header extent and variable data sections to grow without moving data
already stored in the file, i.e. when adding new variables, dimensions,
or attributes.

Test program, tst_inq_header_size.c tests this change.
@wkliao wkliao merged commit 70afcca into master Dec 19, 2025
3 of 4 checks passed
@wkliao wkliao deleted the inq_header branch January 1, 2026 04:13
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