Skip to content

Commit

Permalink
adding more functions to netcdf integration layer
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jul 6, 2019
1 parent 267b96b commit 61cc130
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/ncint/ncintdispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ NC_Dispatch NCINT_dispatcher = {
PIO_NCINT_inq_format,
PIO_NCINT_inq_format_extended,

NC4_inq,
PIO_NCINT_inq,
NC4_inq_type,

PIO_NCINT_def_dim,
Expand Down Expand Up @@ -321,6 +321,29 @@ PIO_NCINT_inq_format_extended(int ncid, int *formatp, int *modep)
return TEST_VAL_42;
}

/**
* @internal Learn number of dimensions, variables, global attributes,
* and the ID of the first unlimited dimension (if any).
*
* @note It's possible for any of these pointers to be NULL, in which
* case don't try to figure out that value.
*
* @param ncid File and group ID.
* @param ndimsp Pointer that gets number of dimensions.
* @param nvarsp Pointer that gets number of variables.
* @param nattsp Pointer that gets number of global attributes.
* @param unlimdimidp Pointer that gets first unlimited dimension ID,
* or -1 if there are no unlimied dimensions.
*
* @return ::NC_NOERR No error.
* @author Ed Hartnett
*/
int
PIO_NCINT_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
{
return PIOc_inq(ncid, ndimsp, nvarsp, nattsp, unlimdimidp);
}

int
PIO_NCINT_get_vara(int ncid, int varid, const size_t *start, const size_t *count,
void *value, nc_type t)
Expand Down
3 changes: 3 additions & 0 deletions src/ncint/ncintdispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ extern "C" {
extern int
PIO_NCINT_inq_format_extended(int ncid, int *formatp, int *modep);

extern int
PIO_NCINT_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp);

extern int
PIO_NCINT_get_vara(int ncid, int varid, const size_t *start, const size_t *count,
void *value, nc_type);
Expand Down

0 comments on commit 61cc130

Please sign in to comment.