2017-03-09 08:01:10 +08:00
|
|
|
/*********************************************************************
|
2018-12-07 05:24:28 +08:00
|
|
|
* Copyright 2018, UCAR/Unidata
|
2017-03-09 08:01:10 +08:00
|
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
#ifndef _NCD4DISPATCH_H
|
|
|
|
#define _NCD4DISPATCH_H
|
|
|
|
|
|
|
|
#include <stddef.h> /* size_t, ptrdiff_t */
|
|
|
|
#include "netcdf.h"
|
|
|
|
#include "ncdispatch.h"
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int
|
|
|
|
NCD4_open(const char *path, int mode,
|
|
|
|
int basepe, size_t *chunksizehintp,
|
2019-08-02 04:30:20 +08:00
|
|
|
void *mpidata, const struct NC_Dispatch *dispatch, int ncid);
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
extern int
|
2018-02-26 12:45:31 +08:00
|
|
|
NCD4_close(int ncid,void*);
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
extern int
|
|
|
|
NCD4_abort(int ncid);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
NCD4_inq_dim(int ncid, int dimid, char* name, size_t* lenp);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
NCD4_get_vara(int ncid, int varid,
|
|
|
|
const size_t *start, const size_t *edges,
|
|
|
|
void *value,
|
|
|
|
nc_type memtype);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
NCD4_get_vars(int ncid, int varid,
|
|
|
|
const size_t *start, const size_t *edges, const ptrdiff_t* strides,
|
|
|
|
void *value,
|
|
|
|
nc_type memtype);
|
|
|
|
|
|
|
|
extern int NCD4_initialize(void);
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*_NCD4DISPATCH_H*/
|