![]() |
NetCDF-Fortran
4.4.4
|
#include <config.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "netcdf.h"
#include "nfconfig.inc"
#include "ncfortran.h"
#include "fort-lib.h"
Go to the source code of this file.
Macros | |
#define | NCOPTS FINT2CINT /* Input, netCDF options argument */ |
#define | PNCOPTS PCINT2FINT /* Output, netCDF options argument */ |
#define | CLOBMODE FINT2CINT /* Input, clobber-mode argument */ |
#define | PRCODE PCINT2FINT /* Output, return-code argument */ |
#define | RWMODE FINT2CINT /* Input, read-write mode argument */ |
#define | DIMLEN FINT2CINT /* Input, dimension-length argument */ |
#define | PDIMLEN PCINT2FINT /* Output, dimension-length argument */ |
#define | LENSTR FINT2CINT /* Input, string-length argument */ |
#define | ATTLEN FINT2CINT /* Input, attribute length argument */ |
#define | PATTLEN PCINT2FINT /* Output, attribute length argument */ |
#define | FILLMODE FINT2CINT /* Input, fill-mode argument */ |
#define | V2IMAP_cfINT(N, A, B, X, Y, Z) DOUBLE_cfINT(N,A,B,X,Y,Z) |
#define | V2IMAPVVVVVVV_cfTYPE NF_INTEGER |
#define | V2IMAP_cfSTR(N, T, A, B, C, D, E) _(CFARGS,N)(T,V2IMAP,A,B,C,D,E) |
#define | V2IMAP_cfH(S, U, B) |
#define | V2IMAP_cfQ(B) ptrdiff_t B[MAX_NC_DIMS]; |
#define | V2IMAP_cfT(M, I, A, B, D) f2c_v2imap(*fncid, *fvarid-1, A, B) |
#define | V2IMAP_cfR(A, B, D) |
Functions | |
static ptrdiff_t * | f2c_v2imap (int ncid, int varid, const int *fimap, ptrdiff_t *cimap) |
Convert a Version 2 Fortran IMAP vector into a Version 3 C imap vector. More... | |
static size_t | dimprod (const size_t *count, int rank) |
static void | c_ncpopt (int val) |
FCALLSCSUB1 (c_ncpopt, NCPOPT, ncpopt, NCOPTS) | |
FCALLSCSUB1 (c_ncgopt, NCGOPT, ncgopt, PNCOPTS) | |
FCALLSCFUN3 (NF_INT, c_nccre, NCCRE, nccre, STRING, CLOBMODE, PRCODE) | |
FCALLSCFUN3 (NF_INT, c_ncopn, NCOPN, ncopn, STRING, RWMODE, PRCODE) | |
FCALLSCFUN4 (NF_INT, c_ncddef, NCDDEF, ncddef, NCID, STRING, DIMLEN, PRCODE) | |
FCALLSCFUN3 (NF_INT, c_ncdid, NCDID, ncdid, NCID, STRING, PRCODE) | |
FCALLSCFUN6 (NF_INT, c_ncvdef, NCVDEF, ncvdef, NCID, STRING, TYPE, NDIMS, DIMIDS, PRCODE) | |
FCALLSCFUN3 (NF_INT, c_ncvid, NCVID, ncvid, NCID, STRING, PRCODE) | |
FCALLSCFUN2 (NF_INT, c_nctlen, NCTLEN, nctlen, TYPE, PRCODE) | |
FCALLSCSUB2 (c_ncclos, NCCLOS, ncclos, NCID, PRCODE) | |
FCALLSCSUB2 (c_ncredf, NCREDF, ncredf, NCID, PRCODE) | |
FCALLSCSUB2 (c_ncendf, NCENDF, ncendf, NCID, PRCODE) | |
FCALLSCSUB6 (c_ncinq, NCINQ, ncinq, NCID, PNDIMS, PNVARS, PNATTS, PDIMID, PRCODE) | |
FCALLSCSUB2 (c_ncsnc, NCSNC, ncsnc, NCID, PRCODE) | |
FCALLSCSUB2 (c_ncabor, NCABOR, ncabor, NCID, PRCODE) | |
FCALLSCSUB5 (c_ncdinq, NCDINQ, ncdinq, NCID, DIMID, PSTRING, PDIMLEN, PRCODE) | |
FCALLSCSUB4 (c_ncdren, NCDREN, ncdren, NCID, DIMID, STRING, PRCODE) | |
FCALLSCSUB8 (c_ncvinq, NCVINQ, ncvinq, NCID, VARID, PSTRING, PTYPE, PNDIMS, PDIMIDS, PNATTS, PRCODE) | |
FCALLSCSUB5 (c_ncvpt1, NCVPT1, ncvpt1, NCID, VARID, COORDS, PVOID, PRCODE) | |
FCALLSCSUB5 (c_ncvp1c, NCVP1C, ncvp1c, NCID, VARID, COORDS, CBUF, PRCODE) | |
FCALLSCSUB6 (c_ncvpt, NCVPT, ncvpt, NCID, VARID, COORDS, COUNTS, PVOID, PRCODE) | |
FCALLSCSUB7 (c_ncvptc, NCVPTC, ncvptc, NCID, VARID, COORDS, COUNTS, CBUF, LENSTR, PRCODE) | |
FCALLSCSUB8 (c_ncvptg, NCVPTG, ncvptg, NCID, VARID, COORDS, COUNTS, STRIDES, V2IMAP, PVOID, PRCODE) | |
FCALLSCSUB8 (c_ncvpgc, NCVPGC, ncvpgc, NCID, VARID, COORDS, COUNTS, STRIDES, V2IMAP, CBUF, PRCODE) | |
FCALLSCSUB5 (c_ncvgt1, NCVGT1, ncvgt1, NCID, VARID, COORDS, PVOID, PRCODE) | |
FCALLSCSUB5 (c_ncvg1c, NCVG1C, ncvg1c, NCID, VARID, COORDS, CBUF, PRCODE) | |
FCALLSCSUB6 (c_ncvgt, NCVGT, ncvgt, NCID, VARID, COORDS, COUNTS, PVOID, PRCODE) | |
FCALLSCSUB7 (c_ncvgtc, NCVGTC, ncvgtc, NCID, VARID, COORDS, COUNTS, CBUF, LENSTR, PRCODE) | |
FCALLSCSUB8 (c_ncvgtg, NCVGTG, ncvgtg, NCID, VARID, COORDS, COUNTS, STRIDES, V2IMAP, PVOID, PRCODE) | |
FCALLSCSUB8 (c_ncvggc, NCVGGC, ncvggc, NCID, VARID, COORDS, COUNTS, STRIDES, V2IMAP, CBUF, PRCODE) | |
FCALLSCSUB4 (c_ncvren, NCVREN, ncvren, NCID, VARID, STRING, PRCODE) | |
FCALLSCSUB7 (c_ncapt, NCAPT, ncapt, NCID, VARID, STRING, TYPE, COUNT, PVOID, PRCODE) | |
FCALLSCSUB7 (c_ncaptc, NCAPTC, ncaptc, NCID, VARID, STRING, TYPE, COUNT, CBUF, PRCODE) | |
FCALLSCSUB6 (c_ncainq, NCAINQ, ncainq, NCID, VARID, STRING, PTYPE, PATTLEN, PRCODE) | |
FCALLSCSUB5 (c_ncagt, NCAGT, ncagt, NCID, VARID, STRING, PVOID, PRCODE) | |
FCALLSCSUB6 (c_ncagtc, NCAGTC, ncagtc, NCID, VARID, STRING, CBUF, ATTLEN, PRCODE) | |
FCALLSCSUB6 (c_ncacpy, NCACPY, ncacpy, NCID1, VARID1, STRING, NCID2, VARID2, PRCODE) | |
FCALLSCSUB5 (c_ncanam, NCANAM, ncanam, NCID, VARID, ATTID, PSTRING, PRCODE) | |
FCALLSCSUB5 (c_ncaren, NCAREN, ncaren, NCID, VARID, STRING, STRING, PRCODE) | |
FCALLSCSUB4 (c_ncadel, NCADEL, ncadel, NCID, VARID, STRING, PRCODE) | |
#define ATTLEN FINT2CINT /* Input, attribute length argument */ |
Definition at line 54 of file fort-v2compat.c.
#define CLOBMODE FINT2CINT /* Input, clobber-mode argument */ |
Definition at line 48 of file fort-v2compat.c.
#define DIMLEN FINT2CINT /* Input, dimension-length argument */ |
Definition at line 51 of file fort-v2compat.c.
#define FILLMODE FINT2CINT /* Input, fill-mode argument */ |
Definition at line 56 of file fort-v2compat.c.
#define LENSTR FINT2CINT /* Input, string-length argument */ |
Definition at line 53 of file fort-v2compat.c.
#define NCOPTS FINT2CINT /* Input, netCDF options argument */ |
Definition at line 46 of file fort-v2compat.c.
#define PATTLEN PCINT2FINT /* Output, attribute length argument */ |
Definition at line 55 of file fort-v2compat.c.
#define PDIMLEN PCINT2FINT /* Output, dimension-length argument */ |
Definition at line 52 of file fort-v2compat.c.
#define PNCOPTS PCINT2FINT /* Output, netCDF options argument */ |
Definition at line 47 of file fort-v2compat.c.
#define PRCODE PCINT2FINT /* Output, return-code argument */ |
Definition at line 49 of file fort-v2compat.c.
#define RWMODE FINT2CINT /* Input, read-write mode argument */ |
Definition at line 50 of file fort-v2compat.c.
#define V2IMAP_cfH | ( | S, | |
U, | |||
B | |||
) |
Definition at line 61 of file fort-v2compat.c.
#define V2IMAP_cfINT | ( | N, | |
A, | |||
B, | |||
X, | |||
Y, | |||
Z | |||
) | DOUBLE_cfINT(N,A,B,X,Y,Z) |
Definition at line 58 of file fort-v2compat.c.
#define V2IMAP_cfQ | ( | B | ) | ptrdiff_t B[MAX_NC_DIMS]; |
Definition at line 62 of file fort-v2compat.c.
#define V2IMAP_cfR | ( | A, | |
B, | |||
D | |||
) |
Definition at line 64 of file fort-v2compat.c.
#define V2IMAP_cfSTR | ( | N, | |
T, | |||
A, | |||
B, | |||
C, | |||
D, | |||
E | |||
) | _(CFARGS,N)(T,V2IMAP,A,B,C,D,E) |
Definition at line 60 of file fort-v2compat.c.
#define V2IMAP_cfT | ( | M, | |
I, | |||
A, | |||
B, | |||
D | |||
) | f2c_v2imap(*fncid, *fvarid-1, A, B) |
Definition at line 63 of file fort-v2compat.c.
#define V2IMAPVVVVVVV_cfTYPE NF_INTEGER |
Definition at line 59 of file fort-v2compat.c.
|
static |
Definition at line 196 of file fort-v2compat.c.
|
static |
Definition at line 180 of file fort-v2compat.c.
|
static |
Convert a Version 2 Fortran IMAP vector into a Version 3 C imap vector.
Definition at line 71 of file fort-v2compat.c.
Definition at line 446 of file fort-v2compat.c.
Definition at line 256 of file fort-v2compat.c.
Definition at line 303 of file fort-v2compat.c.
Definition at line 360 of file fort-v2compat.c.
Definition at line 423 of file fort-v2compat.c.
Definition at line 332 of file fort-v2compat.c.
FCALLSCFUN6 | ( | NF_INT | , |
c_ncvdef | , | ||
NCVDEF | , | ||
ncvdef | , | ||
NCID | , | ||
STRING | , | ||
TYPE | , | ||
NDIMS | , | ||
DIMIDS | , | ||
PRCODE | |||
) |
Definition at line 395 of file fort-v2compat.c.
Definition at line 204 of file fort-v2compat.c.
Definition at line 220 of file fort-v2compat.c.
Definition at line 465 of file fort-v2compat.c.
Definition at line 484 of file fort-v2compat.c.
Definition at line 503 of file fort-v2compat.c.
Definition at line 546 of file fort-v2compat.c.
Definition at line 567 of file fort-v2compat.c.
Definition at line 616 of file fort-v2compat.c.
Definition at line 1548 of file fort-v2compat.c.
Definition at line 1938 of file fort-v2compat.c.
Definition at line 595 of file fort-v2compat.c.
Definition at line 735 of file fort-v2compat.c.
Definition at line 771 of file fort-v2compat.c.
Definition at line 1176 of file fort-v2compat.c.
Definition at line 1220 of file fort-v2compat.c.
Definition at line 1793 of file fort-v2compat.c.
Definition at line 1895 of file fort-v2compat.c.
Definition at line 1917 of file fort-v2compat.c.
Definition at line 526 of file fort-v2compat.c.
Definition at line 1700 of file fort-v2compat.c.
Definition at line 1848 of file fort-v2compat.c.
Definition at line 1872 of file fort-v2compat.c.
FCALLSCSUB7 | ( | c_ncvptc | , |
NCVPTC | , | ||
ncvptc | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
CBUF | , | ||
LENSTR | , | ||
PRCODE | |||
) |
Definition at line 918 of file fort-v2compat.c.
FCALLSCSUB7 | ( | c_ncvgtc | , |
NCVGTC | , | ||
ncvgtc | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
CBUF | , | ||
LENSTR | , | ||
PRCODE | |||
) |
Definition at line 1365 of file fort-v2compat.c.
Definition at line 1640 of file fort-v2compat.c.
Definition at line 1675 of file fort-v2compat.c.
FCALLSCSUB8 | ( | c_ncvinq | , |
NCVINQ | , | ||
ncvinq | , | ||
NCID | , | ||
VARID | , | ||
PSTRING | , | ||
PTYPE | , | ||
PNDIMS | , | ||
PDIMIDS | , | ||
PNATTS | , | ||
PRCODE | |||
) |
Definition at line 642 of file fort-v2compat.c.
FCALLSCSUB8 | ( | c_ncvptg | , |
NCVPTG | , | ||
ncvptg | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
STRIDES | , | ||
V2IMAP | , | ||
PVOID | , | ||
PRCODE | |||
) |
Definition at line 1031 of file fort-v2compat.c.
FCALLSCSUB8 | ( | c_ncvpgc | , |
NCVPGC | , | ||
ncvpgc | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
STRIDES | , | ||
V2IMAP | , | ||
CBUF | , | ||
PRCODE | |||
) |
Definition at line 1082 of file fort-v2compat.c.
FCALLSCSUB8 | ( | c_ncvgtg | , |
NCVGTG | , | ||
ncvgtg | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
STRIDES | , | ||
V2IMAP | , | ||
PVOID | , | ||
PRCODE | |||
) |
Definition at line 1477 of file fort-v2compat.c.
FCALLSCSUB8 | ( | c_ncvggc | , |
NCVGGC | , | ||
ncvggc | , | ||
NCID | , | ||
VARID | , | ||
COORDS | , | ||
COUNTS | , | ||
STRIDES | , | ||
V2IMAP | , | ||
CBUF | , | ||
PRCODE | |||
) |
Definition at line 1527 of file fort-v2compat.c.