now also can set fletcher32 in parallel I/O writes

This commit is contained in:
Edward Hartnett 2019-12-20 06:48:31 -07:00
parent 0c6641eb98
commit f980743be1

View File

@ -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;