netcdf_f.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 1993-2011 University Corporation for Atmospheric Research/Unidata
  3. *
  4. * This header contains prototypes for functions only called by fortran 77.
  5. */
  6. #ifndef _NETCDF_F_
  7. #define _NETCDF_F_
  8. #include <netcdf.h>
  9. #if defined(__cplusplus)
  10. extern "C" {
  11. #endif
  12. EXTERNL int
  13. nc_inq_var_chunking_ints(int ncid, int varid, int *contiguousp, int *chunksizesp);
  14. EXTERNL int
  15. nc_def_var_chunking_ints(int ncid, int varid, int contiguous, int *chunksizesp);
  16. EXTERNL int
  17. nc_open_par_fortran(const char *path, int mode, int comm,
  18. int info, int *ncidp);
  19. EXTERNL int
  20. nc_create_par_fortran(const char *path, int cmode, int comm,
  21. int info, int *ncidp);
  22. EXTERNL int
  23. nc_set_chunk_cache_ints(int size, int nelems, int preemption);
  24. EXTERNL int
  25. nc_get_chunk_cache_ints(int *sizep, int *nelemsp, int *preemptionp);
  26. EXTERNL int
  27. nc_set_var_chunk_cache_ints(int ncid, int varid, int size, int nelems,
  28. int preemption);
  29. EXTERNL int
  30. nc_get_var_chunk_cache_ints(int ncid, int varid, int *sizep,
  31. int *nelemsp, int *preemptionp);
  32. /* Prototypes for some extra functions in fort-lib.c. */
  33. EXTERNL int
  34. nc_inq_varids_f(int ncid, int *nvars, int *fvarids);
  35. EXTERNL int
  36. nc_inq_dimids_f(int ncid, int *ndims, int *fdimids, int parent);
  37. EXTERNL int
  38. nc_insert_array_compound_f(int ncid, int typeid, char *name,
  39. size_t offset, nc_type field_typeid,
  40. int ndims, int *dim_sizesp);
  41. EXTERNL int
  42. nc_inq_compound_field_f(int ncid, nc_type xtype, int fieldid, char *name,
  43. size_t *offsetp, nc_type *field_typeidp, int *ndimsp,
  44. int *dim_sizesp);
  45. #if defined(__cplusplus)
  46. }
  47. #endif
  48. #endif