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