forked from Unidata/netcdf-c
/
ncd4dispatch.h
50 lines (38 loc) · 1.14 KB
/
ncd4dispatch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*********************************************************************
* Copyright 2016, UCAR/Unidata
* 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,
int use_parallel, void* mpidata,
struct NC_Dispatch* dispatch, NC* ncp);
extern int
NCD4_close(int ncid);
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*/