@@ -2322,7 +2322,7 @@ PIOc_def_var(int ncid, const char *name, nc_type xtype, int ndims,
2322
2322
*
2323
2323
* When the fill mode for the file is NC_FILL, then fill values are
2324
2324
* used for missing data. This function sets the fill value to be used
2325
- * for a variable. If no specific fill value is set (as a _FillValue
2325
+ * for a variable. If no specific fill value is set (as a NC_FillValue
2326
2326
* attribute), then the default fill values from netcdf.h are used.
2327
2327
*
2328
2328
* NetCDF-4 and pnetcdf files allow setting fill_mode (to NC_FILL or
@@ -2430,7 +2430,7 @@ PIOc_def_var_fill(int ncid, int varid, int fill_mode, const void *fill_valuep)
2430
2430
{
2431
2431
ierr = nc_set_fill (file -> fh , NC_FILL , NULL );
2432
2432
if (!ierr )
2433
- ierr = nc_put_att (file -> fh , varid , _FillValue , xtype , 1 , fill_valuep );
2433
+ ierr = nc_put_att (file -> fh , varid , NC_FillValue , xtype , 1 , fill_valuep );
2434
2434
}
2435
2435
}
2436
2436
else
@@ -2477,7 +2477,7 @@ PIOc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
2477
2477
{
2478
2478
iosystem_desc_t * ios ; /* Pointer to io system information. */
2479
2479
file_desc_t * file ; /* Pointer to file information. */
2480
- nc_type xtype ; /* Type of variable and its _FillValue attribute. */
2480
+ nc_type xtype ; /* Type of variable and its NC_FillValue attribute. */
2481
2481
PIO_Offset type_size ; /* Size in bytes of this variable's type. */
2482
2482
int mpierr = MPI_SUCCESS , mpierr2 ; /* Return code from MPI function codes. */
2483
2483
int ierr = PIO_NOERR ; /* Return code from function calls. */
@@ -2574,7 +2574,7 @@ PIOc_inq_var_fill(int ncid, int varid, int *no_fill, void *fill_valuep)
2574
2574
2575
2575
if (!ierr && fill_valuep )
2576
2576
{
2577
- ierr = nc_get_att (file -> fh , varid , _FillValue , fill_valuep );
2577
+ ierr = nc_get_att (file -> fh , varid , NC_FillValue , fill_valuep );
2578
2578
if (ierr == NC_ENOTATT )
2579
2579
{
2580
2580
char char_fill_value = NC_FILL_CHAR ;
0 commit comments