E3SM-Project / scorpio

A high-level Parallel I/O Library for structured grid applications
19 stars 16 forks source link

Set NC_NODIMSCALE_ATTACH flag to create files with NETCDF4P type #502

Closed dqwu closed 1 year ago

dqwu commented 1 year ago

This PR applies a new flag introduced by NetCDF 4.9.0 to create NetCDF4 files without dimscale attachment, which can avoid possible HDF5 errors caused by H5DSattach_scale calls inside NetCDF library.

This workaround is required for E3SM cases built with latest NetCDF 4.9.0 to run with NETCDF4P IO type.

Fixes #501