Skip to content

Conversation

@jayeshkrishna
Copy link
Contributor

Adding support for CDF5 types for PIOc_put_vars*() calls
with PnetCDF

Also adding C tests with PIOc_put_vars*() calls using CDF5
types.

Adding support for put_vars*() calls using PnetCDF with CDF5 types
@jayeshkrishna
Copy link
Contributor Author

Without this change, calls using CDF5 types (e.g. PIOc_put_vars_uchar(), PIOc_put_vars_longlong() etc ) will fail for the PnetCDF I/O type (with an error message similar to the one shown below),

PIO: ERROR: Writing variable (var_ubyte_arr, varid=1) to file (test_pioc_putget_cdf5_new_data_types_fmt_0.nc, ncid=156) failed. Unsupported PnetCDF variable type (7). NetCDF: Not a valid data type or _FillValue type mismatch (error num=-45), (/home/jayesh/scorpio5/src/clib/pio_getput_int.cpp:3370)

Adding put_vars*() tests for CDF5 types.
@jayeshkrishna jayeshkrishna force-pushed the jayeshkrishna/add_put_vars_cdf5_pnetcdf_support branch from c0f5b85 to c4d8bc3 Compare December 9, 2025 16:26
Copy link
Member

@amametjanov amametjanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This fixes errors in Omega CTest IO_TEST with pnetcdf as default.

@jayeshkrishna
Copy link
Contributor Author

Thanks @amametjanov for reporting the issue and noting the missing switch cases for the CDF5 types!

jayeshkrishna added a commit that referenced this pull request Dec 9, 2025
…evelop (PR #670)

Adding support for CDF5 types for PIOc_put_vars*() calls
with PnetCDF

Also adding C tests with PIOc_put_vars*() calls using CDF5
types.

* jayeshkrishna/add_put_vars_cdf5_pnetcdf_support:
  Adding put_vars*() test for CDF5 types
  Adding missing support for CDF5 types for PnetCDF
@jayeshkrishna jayeshkrishna added the PnetCDF Issues/PRs related to PnetCDF support label Dec 9, 2025
@jayeshkrishna jayeshkrishna merged commit 6d4f2f3 into master Dec 11, 2025
1 check passed
jayeshkrishna added a commit that referenced this pull request Dec 11, 2025
…d_put_vars_cdf5_pnetcdf_support

Adding support for CDF5 types for PIOc_put_vars*() calls
with PnetCDF

Also adding C tests with PIOc_put_vars*() calls using CDF5
types.

(See PR #670 for these changes being merged to master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PnetCDF Issues/PRs related to PnetCDF support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants