Repository navigation
Preserve grid data when writing NetCDF grids through the API - #9322
Open
traitimtrongvag wants to merge 1 commit into
Open
traitimtrongvag wants to merge 1 commit into
traitimtrongvag wants to merge 1 commit into
Conversation
Keep caller-owned grid data and metadata unchanged when writing ordinary full-grid files through an external API session. Use a private grid copy for the writer path and release it after writing, including error returns. Add regression coverage for scaled NetCDF writes, repeated writes, write failures, and caller-state preservation. Ensure the API test script propagates helper failures. Validation: fresh configure/build succeeded; direct grid API tests and the apigmtgrid and test_grid_io CTest tests passed. Valgrind invalid-access checks reported no errors. Full leak analysis, sanitizer validation, and Fortran coverage remain outstanding.
Member
|
If you have a concrete case where this happens, please report it (we know of a case and have even a issue open on it), but we are not going to accept AI long code changes like this. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Writing a grid through
GMT_Write_Datacan modify the caller-owned grid, including its data and metadata. This change prevents those side effects for ordinary full-grid file writes through an external API session.Changes
Testing
testapi_gmtgridpassed.ctest -R 'apigmtgrid|test_grid_io'passed (2/2 tests).Limitations
Full leak analysis, ASan/UBSan, and Fortran coverage have not been completed.