forked from maartenplieger/climexp_numerical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recfac.h
28 lines (27 loc) · 868 Bytes
/
recfac.h
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
* get the factor with which one has to multiply the number
* of reals (or integrs) in a direct access file when opening it.
* (recfac), and the same parameter for single-precision reals (recfa4)
integer recfac,recfa4
#if defined(sun) || defined(__sun__) || defined (__NeXT__) || defined(linux)
* but the Sun (with Sun f77 2.0 || g77) and NeXT/Linux (with f2c) in bytes
#ifdef REAL64
parameter(recfac=8)
#else
parameter(recfac=4)
#endif
parameter(recfa4=4)
#else
#if defined(__alpha) || defined(__sgi)
* the alpha and indies counts record lengths in 4-byte units
#ifdef REAL64
parameter(recfac=2)
#else
parameter(recfac=1)
#endif
parameter(recfa4=1)
#else
* the Cray measures direct access files in bytes
parameter(recfac=8)
parameter(recfa4=4)
#endif
#endif