1 |
C $Header: /u/u3/gcmpack/MITgcm/verification/global_ocean.90x40x15/code_ad/CPP_OPTIONS.h,v 1.3.4.1 2003/10/20 18:53:33 edhill Exp $ |
2 |
C |
3 |
C CPP flags controlling which code in included in the files that |
4 |
C will be compiled. |
5 |
|
6 |
#include "PACKAGES_CONFIG.h" |
7 |
|
8 |
#ifdef ALLOW_KPP |
9 |
#define SHORTWAVE_HEATING |
10 |
#endif |
11 |
|
12 |
C coriolis terms |
13 |
#define INCLUDE_CD_CODE |
14 |
|
15 |
C o Include/exclude temperature advection code |
16 |
cph |
17 |
#undef INCLUDE_TR1_ADVECTION_CODE |
18 |
#define INCLUDE_T_ADVECTION_CODE |
19 |
#ifdef INCLUDE_T_ADVECTION_CODE |
20 |
#define _ADT(a)a |
21 |
#endif |
22 |
#ifndef INCLUDE_T_ADVECTION_CODE |
23 |
#define _ADT(a) |
24 |
#endif |
25 |
|
26 |
C o Include/exclude temperature diffusion code |
27 |
#undef INCLUDE_TR1_DIFFUSION_CODE |
28 |
#define INCLUDE_T_DIFFUSION_CODE |
29 |
#ifdef INCLUDE_T_DIFFUSION_CODE |
30 |
#define _LPT(a)a |
31 |
#define _BHT(a)a |
32 |
#endif |
33 |
#ifndef INCLUDE_T_DIFFUSION_CODE |
34 |
#define _LPT(a) |
35 |
#define _BHT(a) |
36 |
#endif |
37 |
|
38 |
C o Include/exclude temperature forcing code |
39 |
cph |
40 |
#undef INCLUDE_TR1_FORCING_CODE |
41 |
#define INCLUDE_T_FORCING_CODE |
42 |
|
43 |
C o Include/exclude momentum advection code |
44 |
cph |
45 |
#define INCLUDE_MOMENTUM_ADVECTION_CODE |
46 |
#ifdef INCLUDE_MOMENTUM_ADVECTION_CODE |
47 |
#define _ADM(a)a |
48 |
#endif |
49 |
#ifndef INCLUDE_MOMENTUM_ADVECTION_CODE |
50 |
#define _ADM(a) |
51 |
#endif |
52 |
|
53 |
C o Include/exclude laplacian viscosity code |
54 |
#define INCLUDE_LP_MOMENTUM_DIFFUSION_CODE |
55 |
#ifdef INCLUDE_LP_MOMENTUM_DIFFUSION_CODE |
56 |
#define _LPM(a)a |
57 |
#endif |
58 |
#ifndef INCLUDE_LP_MOMENTUM_DIFFUSION_CODE |
59 |
#define _LPM(a) |
60 |
#endif |
61 |
|
62 |
C o Include/exclude biharmonic viscosity code |
63 |
#define INCLUDE_BH_MOMENTUM_DIFFUSION_CODE |
64 |
#ifdef INCLUDE_BH_MOMENTUM_DIFFUSION_CODE |
65 |
#define _BHM(a)a |
66 |
#else |
67 |
#define _BHM(a) |
68 |
#endif |
69 |
|
70 |
C o Include/exclude gradient of phy_hyd code |
71 |
#define INCLUDE_GRADPH_CODE |
72 |
#ifdef INCLUDE_GRADPH_CODE |
73 |
#define _PHM(a)a |
74 |
#endif |
75 |
#ifndef INCLUDE_GRADPH_CODE |
76 |
#define _PHM(a) |
77 |
#endif |
78 |
|
79 |
C o Include/exclude momentum forcing code |
80 |
cph |
81 |
#define INCLUDE_MOMENTUM_FORCING_CODE |
82 |
|
83 |
C o Include/exclude momentum eqn metric terms code |
84 |
#define INCLUDE_MOMENTUM_METRIC_TERM_CODE |
85 |
|
86 |
C o Include/exclude phi_hyd calculation code |
87 |
#define INCLUDE_PHIHYD_CALCULATION_CODE |
88 |
|
89 |
C o Include/exclude call to S/R CONVECT |
90 |
#define INCLUDE_CONVECT_CALL |
91 |
|
92 |
C o Include/exclude call to S/R CALC_DIFFUSIVITY |
93 |
#define INCLUDE_CALC_DIFFUSIVITY_CALL |
94 |
|
95 |
C o Allow nonHydrostatic code |
96 |
#undef ALLOW_NONHYDROSTATIC |
97 |
|
98 |
C o Use "natural" boundary conditions for salinity |
99 |
C instead of the "virtual salt flux" |
100 |
#undef USE_NATURAL_BCS |
101 |
|
102 |
C o Use "OLD" UV discretisation near boundaries (*not* recommended) |
103 |
C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F |
104 |
C because the old code did not have no-slip BCs |
105 |
#undef OLD_ADV_BCS |
106 |
|
107 |
C o Use "OLD" UV geometry on sphere (definately *NOT* recommended) |
108 |
C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F |
109 |
C because the old code did not have no-slip BCs |
110 |
#undef OLD_UV_GEOMETRY |
111 |
|
112 |
C o Read/write of checkpoint files for restarting. |
113 |
#undef OLD_STYLE_WITH_MANY_FILES |
114 |
|
115 |
C o Exact volume conservation |
116 |
#undef EXACT_CONSERV |
117 |
|
118 |
C o Add passive tracer advection routines |
119 |
#undef ALLOW_PASSIVE_TRACER |
120 |
|
121 |
C o Include/exclude monitor package |
122 |
#define EXCLUDE_MONITOR |
123 |
|
124 |
C o Execution environment support options |
125 |
#include "CPP_EEOPTIONS.h" |
126 |
|
127 |
C o Include/exclude code specific to the ECCO/SEALION version. |
128 |
#undef INCLUDE_ECCO_PACKAGE |
129 |
#define ALLOW_ADJOINT_RUN |
130 |
#define ALLOW_GRADIENT_CHECK |
131 |
#undef ALLOW_TANGENTLINEAR_RUN |
132 |
|
133 |
#if (defined (INCLUDE_ECCO_PACKAGE) || \ |
134 |
defined (ALLOW_ADJOINT_RUN) || \ |
135 |
defined (ALLOW_TANGENTLINEAR_RUN)) |
136 |
#include "ECCO_CPPOPTIONS.h" |
137 |
#endif |
138 |
|
139 |
|
140 |
|