Ticket #57493: ESMC_Conf.h

File ESMC_Conf.h, 1.3 KB (added by Dave-Allured (Dave Allured), 5 years ago)

Patched config file. There are many different versions with the same file name in ESMF source. For Macports using +gcc8, this must go to the specific location esmf/build_config/Darwin.gfortran.default/ESMC_Conf.h, replacing the original file.

Line 
1#ifdef ESMC_RCS_HEADER
2"$Id$"
3"Defines the configuration for this machine"
4#endif
5
6#if 0
7Earth System Modeling Framework
8Copyright 2002-2018, University Corporation for Atmospheric Research,
9Massachusetts Institute of Technology, Geophysical Fluid Dynamics
10Laboratory, University of Michigan, National Centers for Environmental
11Prediction, Los Alamos National Laboratory, Argonne National Laboratory,
12NASA Goddard Space Flight Center.
13Licensed under the University of Illinois-NCSA License.
14#endif
15
16#if !defined(INCLUDED_CONF_H)
17#define INCLUDED_CONF_H
18
19#define PARCH_darwin
20
21#ifdef ESMF_LOWERCASE_SINGLEUNDERSCORE
22#define FTN_X(func) func##_
23#define FTNX(func) func##_
24#endif
25#ifdef ESMF_LOWERCASE_DOUBLEUNDERSCORE
26#define FTN_X(func) func##__
27#define FTNX(func) func##_
28#endif
29
30#if defined (__cplusplus)
31// Typedef to match the data type of the 'hidden' string length
32// argument that Fortran uses when passing CHARACTER strings.
33#if (__GNUC__ > 7)
34#include <cstddef>
35typedef size_t ESMCI_FortranStrLenArg;
36#else
37typedef int ESMCI_FortranStrLenArg;
38#endif
39#endif
40
41#define ESMC_PRESENT(arg) ( (arg) != 0 )
42
43#ifdef S32
44#define ESMC_POINTER_SIZE 4
45#endif
46#ifdef Sia64_64
47#define ESMC_POINTER_SIZE 8
48#endif
49#ifdef Sx86_64_32
50#define ESMC_POINTER_SIZE 4
51#endif
52#ifdef Sx86_64_small
53#define ESMC_POINTER_SIZE 8
54#endif
55#ifdef Sx86_64_medium
56#define ESMC_POINTER_SIZE 8
57#endif
58
59#endif