1 |
C $Header: /u/gcmpack/MITgcm/verification/global2x2_tot/code/ECCO_CPPOPTIONS.h,v 1.4 2007/10/09 02:29:10 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
C |
5 |
C CPP flags controlling which code is included in the files that |
6 |
C will be compiled. |
7 |
C |
8 |
C ******************************************************************** |
9 |
C *** ECCO Package *** |
10 |
C ******************************************************************** |
11 |
C |
12 |
C o include dump of snap shots for checks |
13 |
#undef ALLOW_SNAPSHOTS |
14 |
|
15 |
#undef ALLOW_ECCO_FORWARD_RUN |
16 |
#undef ALLOW_ECCO_DIAGNOSTICS_RUN |
17 |
#define ALLOW_ECCO_OPTIMIZATION |
18 |
|
19 |
C >>> Do a long protocol. |
20 |
#undef ECCO_VERBOSE |
21 |
|
22 |
C >>> Just do a "dry" run ( useful for testing ). |
23 |
#undef ALLOW_NO_DYNAMICS |
24 |
C >>> Use the Yearly-Monthly-Daily-Stepping call tree. |
25 |
#undef ALLOW_YMDS_TREE |
26 |
C >>> Do not call stepping |
27 |
#define ALLOW_STEPPING_CALL |
28 |
|
29 |
C ******************************************************************** |
30 |
C *** Adjoint Support Package *** |
31 |
C ******************************************************************** |
32 |
|
33 |
C o Include/exclude code in order to be able to automatically |
34 |
C differentiate the MITgcmUV by using the Tangent Linear and |
35 |
C Adjoint Model Compiler (TAMC). |
36 |
#define INCLUDE_AUTODIFF_PACKAGE |
37 |
C |
38 |
#define ALLOW_AUTODIFF_TAMC |
39 |
C >>> Checkpointing as handled by TAMC |
40 |
#define ALLOW_TAMC_CHECKPOINTING |
41 |
C |
42 |
C >>> Extract adjoint state |
43 |
#undef ALLOW_AUTODIFF_MONITOR |
44 |
C |
45 |
C o use divided adjoint to split adjoint computations |
46 |
#undef ALLOW_DIVIDED_ADJOINT |
47 |
#undef ALLOW_DIVIDED_ADJOINT_MPI |
48 |
|
49 |
C ******************************************************************** |
50 |
C *** Calender Package *** |
51 |
C ******************************************************************** |
52 |
C |
53 |
C CPP flags controlling which code is included in the files that |
54 |
C will be compiled. |
55 |
|
56 |
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
57 |
|
58 |
C ******************************************************************** |
59 |
C *** Cost function Package *** |
60 |
C ******************************************************************** |
61 |
C |
62 |
#define ALLOW_COST |
63 |
|
64 |
#ifdef ALLOW_COST |
65 |
C >>> Use the EGM-96 geoid error covariance. |
66 |
cph# define ALLOW_EGM96_ERROR_DIAG |
67 |
cph needs more testing |
68 |
# undef ALLOW_EGM96_ERROR_DIAG |
69 |
# undef ALLOW_EGM96_ERROR_COV |
70 |
# undef ALLOW_SPH_PROJECTION |
71 |
|
72 |
C >>> Use NSCAT data. |
73 |
# undef ALLOW_SCAT_COST_CONTRIBUTION |
74 |
|
75 |
C >>> Cost function contributions |
76 |
# define ALLOW_HFLUX_COST_CONTRIBUTION |
77 |
# define ALLOW_SFLUX_COST_CONTRIBUTION |
78 |
# define ALLOW_MEAN_HFLUX_COST_CONTRIBUTION |
79 |
# define ALLOW_MEAN_SFLUX_COST_CONTRIBUTION |
80 |
# define ALLOW_USTRESS_COST_CONTRIBUTION |
81 |
# define ALLOW_VSTRESS_COST_CONTRIBUTION |
82 |
# define ALLOW_STRESS_MEAN_COST_CONTRIBUTION |
83 |
|
84 |
# undef ALLOW_ATEMP_COST_CONTRIBUTION |
85 |
# undef ALLOW_AQH_COST_CONTRIBUTION |
86 |
# undef ALLOW_UWIND_COST_CONTRIBUTION |
87 |
# undef ALLOW_VWIND_COST_CONTRIBUTION |
88 |
|
89 |
# define ALLOW_THETA_COST_CONTRIBUTION |
90 |
# define ALLOW_SALT_COST_CONTRIBUTION |
91 |
# define ALLOW_THETA0_COST_CONTRIBUTION |
92 |
# define ALLOW_SALT0_COST_CONTRIBUTION |
93 |
# define ALLOW_SST_COST_CONTRIBUTION |
94 |
# undef ALLOW_SSS_COST_CONTRIBUTION |
95 |
|
96 |
# define ALLOW_SSH_MEAN_COST_CONTRIBUTION |
97 |
# define ALLOW_SSH_TPANOM_COST_CONTRIBUTION |
98 |
# define ALLOW_SSH_ERSANOM_COST_CONTRIBUTION |
99 |
# if (defined (ALLOW_SSH_MEAN_COST_CONTRIBUTION) || \ |
100 |
defined (ALLOW_SSH_TPANOM_COST_CONTRIBUTION) || \ |
101 |
defined (ALLOW_SSH_ERSANOM_COST_CONTRIBUTION)) |
102 |
# define ALLOW_SSH_COST_CONTRIBUTION |
103 |
# endif |
104 |
|
105 |
# undef ALLOW_XBT_COST_CONTRIBUTION |
106 |
# define ALLOW_CTDT_COST_CONTRIBUTION |
107 |
# define ALLOW_CTDS_COST_CONTRIBUTION |
108 |
# undef ALLOW_DRIFTER_COST_CONTRIBUTION |
109 |
# undef ALLOW_DRIFT_COST_CONTRIBUTION |
110 |
# undef ALLOW_DRIFTW_COST_CONTRIBUTION |
111 |
C |
112 |
# undef ALLOW_ARGO_THETA_COST_CONTRIBUTION |
113 |
# undef ALLOW_ARGO_SALT_COST_CONTRIBUTION |
114 |
C |
115 |
# undef ALLOW_COST_ATLANTIC |
116 |
c |
117 |
c >>> Open boundaries |
118 |
c >>> Make sure that ALLOW_OBCS is defined! |
119 |
# undef ALLOW_OBCSN_COST_CONTRIBUTION |
120 |
# undef ALLOW_OBCSS_COST_CONTRIBUTION |
121 |
# undef ALLOW_OBCSW_COST_CONTRIBUTION |
122 |
# undef ALLOW_OBCSE_COST_CONTRIBUTION |
123 |
# if (defined (ALLOW_OBCSN_COST_CONTRIBUTION) || \ |
124 |
defined (ALLOW_OBCSS_COST_CONTRIBUTION) || \ |
125 |
defined (ALLOW_OBCSW_COST_CONTRIBUTION) || \ |
126 |
defined (ALLOW_OBCSE_COST_CONTRIBUTION)) |
127 |
# define ALLOW_OBCS_COST_CONTRIBUTION |
128 |
# endif |
129 |
|
130 |
#endif /* ALLOW_COST */ |
131 |
|
132 |
C ******************************************************************** |
133 |
C *** Control vector Package *** |
134 |
C ******************************************************************** |
135 |
C |
136 |
#define ALLOW_NONDIMENSIONAL_CONTROL_IO |
137 |
|
138 |
C >>> Initial values. |
139 |
#define ALLOW_THETA0_CONTROL |
140 |
#define ALLOW_SALT0_CONTROL |
141 |
|
142 |
C >>> Surface fluxes. |
143 |
#define ALLOW_HFLUX_CONTROL |
144 |
#define ALLOW_SFLUX_CONTROL |
145 |
#define ALLOW_USTRESS_CONTROL |
146 |
#define ALLOW_VSTRESS_CONTROL |
147 |
|
148 |
C >>> Atmospheric state. |
149 |
#undef ALLOW_ATEMP_CONTROL |
150 |
#undef ALLOW_AQH_CONTROL |
151 |
#undef ALLOW_UWIND_CONTROL |
152 |
#undef ALLOW_VWIND_CONTROL |
153 |
#undef ALLOW_PRECIP_CONTROL |
154 |
|
155 |
C >>> Radiation |
156 |
#undef ALLOW_SWFLUX_CONTROL |
157 |
#undef ALLOW_LWFLUX_CONTROL |
158 |
|
159 |
C >>> Open boundaries |
160 |
c >>> Make sure that ALLOW_OBCS is defined |
161 |
#undef ALLOW_OBCSN_CONTROL |
162 |
#undef ALLOW_OBCSS_CONTROL |
163 |
#undef ALLOW_OBCSW_CONTROL |
164 |
#undef ALLOW_OBCSE_CONTROL |
165 |
#if (defined (ALLOW_OBCSN_CONTROL) || \ |
166 |
defined (ALLOW_OBCSS_CONTROL) || \ |
167 |
defined (ALLOW_OBCSW_CONTROL) || \ |
168 |
defined (ALLOW_OBCSE_CONTROL)) |
169 |
# define ALLOW_OBCS_CONTROL |
170 |
#endif |
171 |
|
172 |
C ******************************************************************** |
173 |
C *** External forcing Package *** |
174 |
C ******************************************************************** |
175 |
C |
176 |
C o Include/exclude the external forcing package. To use this package, |
177 |
C you have to include the calendar tool as well. KPP can be switched |
178 |
C on or off. The implementation automatically takes care of this. |
179 |
#define INCLUDE_EXTERNAL_FORCING_PACKAGE |
180 |
|
181 |
C Do more printout for the protocol file than usual. |
182 |
#undef EXF_VERBOSE |
183 |
|
184 |
C Bulk formulae related flags. |
185 |
#undef ALLOW_ATM_TEMP |
186 |
#undef ALLOW_ATM_WIND |
187 |
#if (defined (ALLOW_ATM_TEMP) || \ |
188 |
defined (ALLOW_ATM_WIND)) |
189 |
# define ALLOW_BULKFORMULAE |
190 |
#endif |
191 |
|
192 |
C Read in runoff data |
193 |
#define ALLOW_RUNOFF |
194 |
|
195 |
C Relaxation to monthly climatologies. |
196 |
#define ALLOW_CLIM_CYCLIC |
197 |
#undef ALLOW_CLIMTEMP_RELAXATION |
198 |
#undef ALLOW_CLIMSALT_RELAXATION |
199 |
#undef ALLOW_CLIMSST_RELAXATION |
200 |
#undef ALLOW_CLIMSSS_RELAXATION |
201 |
|
202 |
C Relaxation to monthly climatologies. |
203 |
#ifdef ALLOW_CLIMSST_RELAXATION |
204 |
# define ALLOW_MONTHLY_CLIMSST_RELAXATION |
205 |
#endif |
206 |
#ifdef ALLOW_CLIMSSS_RELAXATION |
207 |
# define ALLOW_MONTHLY_CLIMSSS_RELAXATION |
208 |
#endif |
209 |
|
210 |
C Relaxation to constant surface fields. |
211 |
#undef ALLOW_CONST_SST_RELAXATION |
212 |
#undef ALLOW_CONST_SSS_RELAXATION |