-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfconfig.in
83 lines (64 loc) · 2.26 KB
/
nfconfig.in
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#if 0
$Id: nfconfig.in,v 1.2 2009/09/08 17:14:51 ed Exp $
#endif
#ifndef UD_NETCDF_CPP_INC
#define UD_NETCDF_CPP_INC
#if 0
Do not have C-style comments in here because this file is processed
by both the FORTRAN compiler (for the nf_test/ stuff) and the C
compiler (for the FORTRAN-callable interface routines) and some
FORTRAN preprocessors do not understand the /*...*/ syntax.
#endif
#if 0
The following macros define the supplementary FORTRAN arithmetic
datatypes beyond the standard INTEGER, REAL, and DOUBLEPRECISION --
ostensibly corresponding to 8-bit and 16-bit integers, respectively.
For example:
#define NF_INT1_T byte
#define NF_INT2_T integer*2
These are the types of the relevant arguments in the NF_*_INT1() and
NF_*_INT2() netCDF FORTRAN function calls. The word "ostensibly"
is used advisedly: on some systems an "integer*2" datatype,
nevertheless, occupies 64 bits (we are not making this up).
If your FORTRAN system does not have the respective supplementary
datatype, then do not define the corresponding macro.
#endif
#undef NF_INT1_T
#undef NF_INT2_T
#if 0
Define the following NF_*_IS_C_* macros appropriatly for your system.
The "INT1", "INT2" and "INT" after the "NF_" refer to the NF_INT1_T
FORTRAN datatype, the NF_INT2_T FORTRAN datatype, and the INTEGER
FORTRAN datatype, respectively. If the respective FORTRAN datatype
does not exist, then do not define the corresponding macro.
#endif
#undef NF_INT1_IS_C_SIGNED_CHAR
#undef NF_INT1_IS_C_SHORT
#undef NF_INT1_IS_C_INT
#undef NF_INT1_IS_C_LONG
#undef NF_INT2_IS_C_SHORT
#undef NF_INT2_IS_C_INT
#undef NF_INT2_IS_C_LONG
#undef NF_INT_IS_C_INT
#undef NF_INT_IS_C_LONG
#undef NF_REAL_IS_C_FLOAT
#undef NF_REAL_IS_C_DOUBLE
#undef NF_DOUBLEPRECISION_IS_C_DOUBLE
#undef NF_DOUBLEPRECISION_IS_C_FLOAT
#if 0
Whether the system uses something besides the IEEE floating-point
format to represent floating-point values.
#endif
#undef NO_IEEE_FLOAT
#if 0
END OF CUSTOMIZATION
#endif
#if 0
FORTRAN data types corresponding to netCDF version 2 "byte" and "short"
data types (e.g. INTEGER*1, INTEGER*2). See file "ftest.F" for usage.
#endif
#if !defined(NO_NETCDF_2)
# undef NCBYTE_T
# undef NCSHORT_T
#endif
#endif