Skip to content

Commit

Permalink
more PIO_NCINT functions
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jul 6, 2019
1 parent 42f58b2 commit f5cc645
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/ncint/ncintdispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ NC_Dispatch NCINT_dispatcher = {
PIO_NCINT_inq_var_all,

NC_NOTNC4_var_par_access,
NC_RO_def_var_fill,
PIO_NCINT_def_var_fill,

NC4_show_metadata,
NC4_inq_unlimdims,
Expand Down Expand Up @@ -763,3 +763,22 @@ PIO_NCINT_inq_var_all(int ncid, int varid, char *name, nc_type *xtypep,
{
return PIOc_inq_var(ncid, varid, name, xtypep, ndimsp, dimidsp, nattsp);
}

/**
* @internal This functions sets fill value and no_fill mode for a
* netCDF-4 variable. It is called by nc_def_var_fill().
*
* @note All pointer parameters may be NULL, in which case they are ignored.
* @param ncid File ID.
* @param varid Variable ID.
* @param no_fill No_fill setting.
* @param fill_value Pointer to fill value.
*
* @returns ::NC_NOERR for success
* @author Ed Hartnett
*/
int
PIO_NCINT_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value)
{
return PIOc_def_var_fill(ncid, varid, no_fill, fill_value);
}
4 changes: 4 additions & 0 deletions src/ncint/ncintdispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ extern "C" {
int *no_fill, void *fill_valuep, int *endiannessp,
unsigned int *idp, size_t *nparamsp, unsigned int *params);

extern int
PIO_NCINT_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value);


#if defined(__cplusplus)
}
#endif
Expand Down

0 comments on commit f5cc645

Please sign in to comment.