Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config.h
1 #ifndef CT_CONFIG_H
2 #define CT_CONFIG_H
3 
4 //---------------------------- Version Flags ------------------//
5 // Cantera version -> this will be a double-quoted string value
6 #define CANTERA_VERSION "2.2.1"
7 
8 //------------------------ Development flags ------------------//
9 //
10 // Compile in additional debug printing where available.
11 // Note, the printing may need to be turned on via a switch.
12 // This just compiles in the code.
13 /* #undef DEBUG_MODE */
14 
15 #ifdef DEBUG_MODE
16 #define DEBUG_MODE_ENABLED 1
17 #else
18 #define DEBUG_MODE_ENABLED 0
19 #endif
20 
21 //------------------------ Fortran settings -------------------//
22 
23 // define types doublereal, integer, and ftnlen to match the
24 // corresponding Fortran data types on your system. The defaults
25 // are OK for most systems
26 
27 typedef double doublereal; // Fortran double precision
28 typedef int integer; // Fortran integer
29 typedef int ftnlen; // Fortran hidden string length type
30 
31 
32 // Fortran compilers pass character strings in argument lists by
33 // adding a hidden argument with the length of the string. Some
34 // compilers add the hidden length argument immediately after the
35 // CHARACTER variable being passed, while others put all of the hidden
36 // length arguments at the end of the argument list. Define this if
37 // the lengths are at the end of the argument list. This is usually the
38 // case for most unix Fortran compilers, but is (by default) false for
39 // Visual Fortran under Windows.
40 #define STRING_LEN_AT_END
41 
42 
43 // Define this if Fortran adds a trailing underscore to names in object files.
44 // For linux and most unix systems, this is the case.
45 #define FTN_TRAILING_UNDERSCORE 1
46 
47 
48 #define HAS_SUNDIALS 1
49 #define SUNDIALS_VERSION 25
50 
51 //-------- LAPACK / BLAS ---------
52 
53 #define LAPACK_FTN_STRING_LEN_AT_END 1
54 #define LAPACK_NAMES_LOWERCASE 1
55 #define LAPACK_FTN_TRAILING_UNDERSCORE 1
56 
57 //--------- shared_ptr implementation ---------
58 /* #undef CT_USE_STD_SHARED_PTR */
59 #define CT_USE_TR1_SHARED_PTR 1
60 /* #undef CT_USE_MSFT_SHARED_PTR */
61 /* #undef CT_USE_BOOST_SHARED_PTR */
62 
63 //-------- BOOST --------
64 /* #undef USE_BOOST_MATH */
65 
66 //--------- operating system --------------------------------------
67 
68 // The configure script defines this if the operating system is Mac
69 // OS X, This used to add some Mac-specific directories to the default
70 // data file search path.
71 /* #undef DARWIN */
72 
73 // Identify whether the operating system is Solaris
74 // with a native compiler
75 /* #undef SOLARIS */
76 
77 //---------- C++ Compiler Variations ------------------------------
78 
79 // Name for 'isnan' varies for different compilers / standard libraries
80 #define USE_STD_ISNAN 1
81 #define USE_GLOBAL_ISNAN 1
82 /* #undef USE_UNDERSCORE_ISNAN */
83 
84 #define HAS_FENV_H 1
85 
86 // This define is needed to account for the variability for how
87 // static variables in templated classes are defined. Right now
88 // this is only turned on for the SunPro compiler on Solaris.
89 // in that system , you need to declare the static storage variable.
90 // with the following line in the include file
91 //
92 // template<class M> Cabinet<M>* Cabinet<M>::s_storage;
93 //
94 // Note, on other systems that declaration is treated as a definition
95 // and this leads to multiple defines at link time
96 /* #undef NEEDS_GENERIC_TEMPL_STATIC_DECL */
97 
98 //--------------------- Python ------------------------------------
99 
100 // If this is defined, then python will not be assumed to be
101 // present to support conversions
102 /* #undef HAS_NO_PYTHON */
103 
104 //--------------------- compile options ----------------------------
105 /* #undef THREAD_SAFE_CANTERA */
106 
107 //-------------- Optional Cantera Capabilities ----------------------
108 
109 // Enable Sundials to use an external BLAS/LAPACK library if it was
110 // built to use this option
111 #define SUNDIALS_USE_LAPACK 0
112 
113 #endif