1 |
C $Header: /u/gcmpack/MITgcm/verification/global1x1_tot/code/ECCO_CPPOPTIONS.h,v 1.9 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 |
40 |
C >>> Checkpointing as handled by TAMC |
41 |
#define ALLOW_TAMC_CHECKPOINTING |
42 |
C |
43 |
C >>> Extract adjoint state |
44 |
#undef ALLOW_AUTODIFF_MONITOR |
45 |
C |
46 |
C o use divided adjoint to split adjoint computations |
47 |
#undef ALLOW_DIVIDED_ADJOINT |
48 |
#undef ALLOW_DIVIDED_ADJOINT_MPI |
49 |
|
50 |
C ******************************************************************** |
51 |
C *** Calender Package *** |
52 |
C ******************************************************************** |
53 |
C |
54 |
C CPP flags controlling which code is included in the files that |
55 |
C will be compiled. |
56 |
|
57 |
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
58 |
|
59 |
C ******************************************************************** |
60 |
C *** Cost function Package *** |
61 |
c ******************************************************************** |
62 |
C |
63 |
#define ALLOW_COST |
64 |
|
65 |
#ifdef ALLOW_COST |
66 |
C >>> Use the EGM-96 geoid error covariance. |
67 |
# define ALLOW_EGM96_ERROR_DIAG |
68 |
# undef ALLOW_EGM96_ERROR_COV |
69 |
# undef ALLOW_SPH_PROJECTION |
70 |
|
71 |
C >>> Use NSCAT data. |
72 |
# define ALLOW_SCAT_COST_CONTRIBUTION |
73 |
|
74 |
C >>> Cost function contributions |
75 |
# define ALLOW_HFLUX_COST_CONTRIBUTION |
76 |
# define ALLOW_SFLUX_COST_CONTRIBUTION |
77 |
# define ALLOW_MEAN_HFLUX_COST_CONTRIBUTION |
78 |
# define ALLOW_MEAN_SFLUX_COST_CONTRIBUTION |
79 |
# define ALLOW_USTRESS_COST_CONTRIBUTION |
80 |
# define ALLOW_VSTRESS_COST_CONTRIBUTION |
81 |
# undef ALLOW_STRESS_MEAN_COST_CONTRIBUTION |
82 |
|
83 |
# undef ALLOW_ATEMP_COST_CONTRIBUTION |
84 |
# undef ALLOW_AQH_COST_CONTRIBUTION |
85 |
# undef ALLOW_UWIND_COST_CONTRIBUTION |
86 |
# undef ALLOW_VWIND_COST_CONTRIBUTION |
87 |
|
88 |
# define GENERIC_BAR_MONTH |
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 |
# define ALLOW_SSS_COST_CONTRIBUTION |
95 |
# define ALLOW_TMI_SST_COST_CONTRIBUTION |
96 |
|
97 |
# define ALLOW_SSH_MEAN_COST_CONTRIBUTION |
98 |
# define ALLOW_SSH_TPANOM_COST_CONTRIBUTION |
99 |
# define ALLOW_SSH_ERSANOM_COST_CONTRIBUTION |
100 |
# if (defined (ALLOW_SSH_MEAN_COST_CONTRIBUTION) || \ |
101 |
defined (ALLOW_SSH_TPANOM_COST_CONTRIBUTION) || \ |
102 |
defined (ALLOW_SSH_ERSANOM_COST_CONTRIBUTION)) |
103 |
# define ALLOW_SSH_COST_CONTRIBUTION |
104 |
# endif |
105 |
# undef ALLOW_SSH_TOT |
106 |
# ifndef ALLOW_EGM96_ERROR_DIAG |
107 |
# undef ALLOW_SSH_TOT |
108 |
# endif |
109 |
|
110 |
# define ALLOW_XBT_COST_CONTRIBUTION |
111 |
# define ALLOW_CTDT_COST_CONTRIBUTION |
112 |
# define ALLOW_CTDS_COST_CONTRIBUTION |
113 |
# define ALLOW_DRIFTER_COST_CONTRIBUTION |
114 |
# define ALLOW_DRIFT_COST_CONTRIBUTION |
115 |
# define ALLOW_DRIFTW_COST_CONTRIBUTION |
116 |
C |
117 |
# define ALLOW_ARGO_THETA_COST_CONTRIBUTION |
118 |
# define ALLOW_ARGO_SALT_COST_CONTRIBUTION |
119 |
C |
120 |
c >>> Open boundaries |
121 |
c >>> Make sure that ALLOW_OBCS is defined! |
122 |
# undef ALLOW_OBCSN_COST_CONTRIBUTION |
123 |
# undef ALLOW_OBCSS_COST_CONTRIBUTION |
124 |
# undef ALLOW_OBCSW_COST_CONTRIBUTION |
125 |
# undef ALLOW_OBCSE_COST_CONTRIBUTION |
126 |
# if (defined (ALLOW_OBCSN_COST_CONTRIBUTION) || \ |
127 |
defined (ALLOW_OBCSS_COST_CONTRIBUTION) || \ |
128 |
defined (ALLOW_OBCSW_COST_CONTRIBUTION) || \ |
129 |
defined (ALLOW_OBCSE_COST_CONTRIBUTION)) |
130 |
# define ALLOW_OBCS_COST_CONTRIBUTION |
131 |
# endif |
132 |
|
133 |
# undef ALLOW_COST_ATLANTIC |
134 |
c |
135 |
#endif /* ALLOW_COST */ |
136 |
|
137 |
|
138 |
C ******************************************************************** |
139 |
C *** Control vector Package *** |
140 |
C ******************************************************************** |
141 |
C |
142 |
#define CTRL_SET_OLD_MAXCVARS_30 |
143 |
#define CTRL_SET_PREC_32 |
144 |
#define ALLOW_NONDIMENSIONAL_CONTROL_IO |
145 |
#define CTRL_UNPACK_PRECISE |
146 |
#define CTRL_PACK_PRECISE |
147 |
|
148 |
C >>> Initial values. |
149 |
#define ALLOW_THETA0_CONTROL |
150 |
#define ALLOW_SALT0_CONTROL |
151 |
|
152 |
C >>> Surface fluxes. |
153 |
#define ALLOW_HFLUX_CONTROL |
154 |
#define ALLOW_SFLUX_CONTROL |
155 |
#define ALLOW_USTRESS_CONTROL |
156 |
#define ALLOW_VSTRESS_CONTROL |
157 |
#undef ALLOW_SWFLUX_CONTROL |
158 |
#undef ALLOW_LWFLUX_CONTROL |
159 |
|
160 |
C >>> Atmospheric state. |
161 |
#undef ALLOW_ATEMP_CONTROL |
162 |
#undef ALLOW_AQH_CONTROL |
163 |
#undef ALLOW_UWIND_CONTROL |
164 |
#undef ALLOW_VWIND_CONTROL |
165 |
#undef ALLOW_PRECIP_CONTROL |
166 |
|
167 |
C >>> Radiation |
168 |
#undef ALLOW_SWFLUX_CONTROL |
169 |
#undef ALLOW_LWFLUX_CONTROL |
170 |
|
171 |
C >>> Open boundaries |
172 |
c >>> Make sure that ALLOW_OBCS is defined |
173 |
#undef ALLOW_OBCSN_CONTROL |
174 |
#undef ALLOW_OBCSS_CONTROL |
175 |
#undef ALLOW_OBCSW_CONTROL |
176 |
#undef ALLOW_OBCSE_CONTROL |
177 |
#if (defined (ALLOW_OBCSN_CONTROL) || \ |
178 |
defined (ALLOW_OBCSS_CONTROL) || \ |
179 |
defined (ALLOW_OBCSW_CONTROL) || \ |
180 |
defined (ALLOW_OBCSE_CONTROL)) |
181 |
# define ALLOW_OBCS_CONTROL |
182 |
#endif |
183 |
|
184 |
C ******************************************************************** |
185 |
C *** External forcing Package *** |
186 |
C ******************************************************************** |
187 |
C |
188 |
C o Include/exclude the external forcing package. To use this package, |
189 |
C you have to include the calendar tool as well. KPP can be switched |
190 |
C on or off. The implementation automatically takes care of this. |
191 |
#define INCLUDE_EXTERNAL_FORCING_PACKAGE |
192 |
|
193 |
C Do more printout for the protocol file than usual. |
194 |
#undef EXF_VERBOSE |
195 |
|
196 |
C Bulk formulae related flags. |
197 |
#define ALLOW_RUNOFF |
198 |
#undef ALLOW_ATM_TEMP |
199 |
#undef ALLOW_ATM_WIND |
200 |
#if (defined (ALLOW_ATM_TEMP) || \ |
201 |
defined (ALLOW_ATM_WIND)) |
202 |
# define ALLOW_BULKFORMULAE |
203 |
#endif |
204 |
|
205 |
C Relaxation to monthly climatologies. |
206 |
#undef ALLOW_CLIM_CYCLIC |
207 |
#undef ALLOW_CLIMTEMP_RELAXATION |
208 |
#undef ALLOW_CLIMSALT_RELAXATION |
209 |
#undef ALLOW_CLIMSST_RELAXATION |
210 |
#undef ALLOW_CLIMSSS_RELAXATION |
211 |
#ifdef ALLOW_CLIMSST_RELAXATION |
212 |
# define ALLOW_MONTHLY_CLIMSST_RELAXATION |
213 |
#endif |
214 |
#ifdef ALLOW_CLIMSSS_RELAXATION |
215 |
# define ALLOW_MONTHLY_CLIMSSS_RELAXATION |
216 |
#endif |
217 |
|
218 |
C Relaxation to constant surface fields. |
219 |
#undef ALLOW_CONST_SST_RELAXATION |
220 |
#undef ALLOW_CONST_SSS_RELAXATION |