14#include "nc4internal.h" 
   68    NCglobalstate* gs = NC_getglobalstate();
 
   69    if (preemption < 0 || preemption > 1)
 
   71    gs->chunkcache.size = size;
 
   72    gs->chunkcache.nelems = nelems;
 
   73    gs->chunkcache.preemption = preemption;
 
 
   97    NCglobalstate* gs = NC_getglobalstate();
 
   99        *sizep = gs->chunkcache.size;
 
  102        *nelemsp = gs->chunkcache.nelems;
 
  105        *preemptionp = gs->chunkcache.preemption;
 
 
  125nc_set_chunk_cache_ints(
int size, 
int nelems, 
int preemption)
 
  127    NCglobalstate* gs = NC_getglobalstate();
 
  128    if (size <= 0 || nelems <= 0 || preemption < 0 || preemption > 100)
 
  130    gs->chunkcache.size = (size_t)size;
 
  131    gs->chunkcache.nelems = (size_t)nelems;
 
  132    gs->chunkcache.preemption = (float)preemption / 100;
 
  152nc_get_chunk_cache_ints(
int *sizep, 
int *nelemsp, 
int *preemptionp)
 
  154    NCglobalstate* gs = NC_getglobalstate();
 
  156        *sizep = (int)gs->chunkcache.size;
 
  158        *nelemsp = (int)gs->chunkcache.nelems;
 
  160        *preemptionp = (int)(gs->chunkcache.preemption * 100);
 
  173nc_set_var_chunk_cache_ints(
int ncid, 
int varid, 
int size, 
int nelems,
 
  180nc_def_var_chunking_ints(
int ncid, 
int varid, 
int storage, 
int *chunksizesp)
 
int nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp)
Get current netCDF chunk cache settings.
 
int nc_set_chunk_cache(size_t size, size_t nelems, float preemption)
Set chunk cache size.
 
#define NC_EINVAL
Invalid Argument.
 
#define NC_NOERR
No Error.