mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
now also can set fletcher32 in parallel I/O writes
This commit is contained in:
parent
0c6641eb98
commit
f980743be1
@ -68,6 +68,16 @@ main(int argc, char **argv)
|
||||
#else
|
||||
if (res != NC_EINVAL) ERR;
|
||||
#endif
|
||||
|
||||
/* Setting fletcher32 only will work for HDF5-1.10.2 and later
|
||||
* versions. */
|
||||
res = nc_def_var_fletcher32(ncid, 0, 1);
|
||||
#ifdef HDF5_1_10_2
|
||||
if (res) ERR;
|
||||
#else
|
||||
if (res != NC_EINVAL) ERR;
|
||||
#endif
|
||||
|
||||
/* Write metadata to file. */
|
||||
if ((res = nc_enddef(ncid))) ERR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user