From 8ebe73059cce6fac0a690a139663281964ecad6b Mon Sep 17 00:00:00 2001 From: Wei-keng Liao Date: Tue, 26 Feb 2019 11:16:54 -0600 Subject: [PATCH] revise comments about the deprecated flags in netcdf.h to avoid confusion --- include/netcdf.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/include/netcdf.h b/include/netcdf.h index 3570cdde1..4b8553cf4 100644 --- a/include/netcdf.h +++ b/include/netcdf.h @@ -150,18 +150,16 @@ Use this in mode flags for both nc_create() and nc_open(). */ #define NC_NETCDF4 0x1000 /**< Use netCDF-4/HDF5 format. Mode flag for nc_create(). */ -/** Turn on MPI I/O. -Use this in mode flags for both nc_create() and nc_open(). */ +/** The following 3 flags are deprecated as of 4.6.2. Parallel I/O is now + * initiated by calling nc_create_par and nc_open_par, no longer by flags. + */ #define NC_MPIIO 0x2000 /**< \deprecated */ -/** Turn on MPI POSIX I/O. -Use this in mode flags for both nc_create() and nc_open(). */ -#define NC_MPIPOSIX NC_MPIIO /**< \deprecated As of libhdf5 1.8.13. Now an alias */ +#define NC_MPIPOSIX NC_MPIIO /**< \deprecated */ +#define NC_PNETCDF (NC_MPIIO) /**< \deprecated */ #define NC_PERSIST 0x4000 /**< Save diskless contents to disk. Mode flag for nc_open() or nc_create() */ #define NC_INMEMORY 0x8000 /**< Read from memory. Mode flag for nc_open() or nc_create() */ -#define NC_PNETCDF (NC_MPIIO) /**< \deprecated Use PnetCDF library; alias for NC_MPIIO. */ - #define NC_MAX_MAGIC_NUMBER_LEN 8 /**< Max len of user-defined format magic number. */ /** Format specifier for nc_set_default_format() and returned