source: XIOS/dev/branch_openmp/extern/src_netcdf4/getvara.h @ 1501

Last change on this file since 1501 was 409, checked in by ymipsl, 11 years ago

Add improved nectdf internal library src

YM

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/*********************************************************************
2 *   Copyright 1993, UCAR/Unidata
3 *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
4 *   $Header: /upc/share/CVS/netcdf-3/libncdap3/getvara.h,v 1.11 2010/05/27 21:34:08 dmh Exp $
5 *********************************************************************/
6#ifndef GETVARA_H
7#define GETVARA_H
8
9/*
10Define the overall maximum cache size
11and the per-retrieval maximum size
12*/
13
14/* Use slightly misspelled names to avoid conflicts */
15#define KILBYTE 0x400
16#define MEGBYTE 0x100000
17#define GIGBYTE 0x40000000
18
19/* The cache limit is in terms of bytes */
20#define DFALTCACHELIMIT (100*MEGBYTE)
21/* The fetch limit is in terms of bytes */
22#define DFALTFETCHLIMIT (100*KILBYTE)
23
24/* WARNING: The small limit is in terms of the # of vector elements */
25#define DFALTSMALLLIMIT (1*KILBYTE)
26
27/* Max number of cache nodes */
28#define DFALTCACHECOUNT (100)
29
30typedef struct Getvara {
31    void* memory; /* where result is put*/
32    struct NCcachenode* cache;
33    struct DCEprojection* varaprojection;
34    /* associated variable*/
35    OCtype dsttype;
36    CDFnode* target;
37    int wholevariable;
38} Getvara;
39
40#endif /*GETVARA_H*/
Note: See TracBrowser for help on using the repository browser.