1 |
mmazloff |
1.1 |
C $Header: /u/gcmpack/MITgcm_contrib/SOSE/BoxAdj/code_ad/ECCO_CPPOPTIONS.h,v 1.2 2011/04/18 23:47:25 mmazloff 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 |
|
|
|
13 |
|
|
|
14 |
|
|
cph#define ALLOW_ECCO_FORWARD_RUN |
15 |
|
|
#define ALLOW_ECCO_OPTIMIZATION |
16 |
|
|
|
17 |
|
|
C >>> Do a long protocol. |
18 |
|
|
#undef ECCO_VERBOSE |
19 |
|
|
|
20 |
|
|
C ******************************************************************** |
21 |
|
|
C *** Adjoint Support Package *** |
22 |
|
|
C ******************************************************************** |
23 |
|
|
|
24 |
|
|
C o Include/exclude code in order to be able to automatically |
25 |
|
|
C |
26 |
|
|
#define ALLOW_AUTODIFF_TAMC |
27 |
|
|
C |
28 |
|
|
C >>> Checkpointing as handled by TAMC |
29 |
|
|
#define ALLOW_TAMC_CHECKPOINTING |
30 |
|
|
C |
31 |
|
|
C extend to 4-level checkpointing |
32 |
|
|
#undef AUTODIFF_4_LEVEL_CHECKPOINT |
33 |
|
|
C |
34 |
|
|
C >>> Extract adjoint state |
35 |
|
|
#define ALLOW_AUTODIFF_MONITOR |
36 |
|
|
C |
37 |
|
|
C o use divided adjoint to split adjoint computations |
38 |
|
|
#undef ALLOW_DIVIDED_ADJOINT |
39 |
|
|
C |
40 |
|
|
C o TAMC compatible subroutine parameter list |
41 |
|
|
#undef AUTODIFF_TAMC_COMPATIBILITY |
42 |
|
|
|
43 |
|
|
C ******************************************************************** |
44 |
|
|
C *** Calendar Package *** |
45 |
|
|
C ******************************************************************** |
46 |
|
|
C |
47 |
|
|
C CPP flags controlling which code is included in the files that |
48 |
|
|
C will be compiled. |
49 |
|
|
|
50 |
|
|
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
51 |
|
|
|
52 |
|
|
C ******************************************************************** |
53 |
|
|
C *** Cost function Package *** |
54 |
|
|
C ******************************************************************** |
55 |
|
|
C |
56 |
|
|
#define ALLOW_COST |
57 |
|
|
#ifdef ALLOW_COST |
58 |
|
|
C >>> Use the EGM-96 geoid error covariance. |
59 |
|
|
# undef ALLOW_EGM96_ERROR_COV |
60 |
|
|
# undef ALLOW_READ_EGM_DATA |
61 |
|
|
C >>> Use NSCAT data. |
62 |
|
|
# undef ALLOW_NSCAT_DATA |
63 |
|
|
C >>> Cost function contributions |
64 |
|
|
|
65 |
|
|
# undef ALLOW_HFLUX_COST_CONTRIBUTION |
66 |
|
|
# undef ALLOW_SFLUX_COST_CONTRIBUTION |
67 |
|
|
# undef ALLOW_USTRESS_COST_CONTRIBUTION |
68 |
|
|
# undef ALLOW_VSTRESS_COST_CONTRIBUTION |
69 |
|
|
|
70 |
|
|
# undef ALLOW_ATEMP_COST_CONTRIBUTION |
71 |
|
|
# undef ALLOW_AQH_COST_CONTRIBUTION |
72 |
|
|
# undef ALLOW_UWIND_COST_CONTRIBUTION |
73 |
|
|
# undef ALLOW_VWIND_COST_CONTRIBUTION |
74 |
|
|
# undef ALLOW_PRECIP_COST_CONTRIBUTION |
75 |
|
|
# undef ALLOW_SNOWPRECIP_COST_CONTRIBUTION |
76 |
|
|
# undef ALLOW_SWDOWN_COST_CONTRIBUTION |
77 |
|
|
# undef ALLOW_LWDOWN_COST_CONTRIBUTION |
78 |
|
|
# undef ALLOW_EVAP_COST_CONTRIBUTION |
79 |
|
|
# undef ALLOW_APRESSURE_COST_CONTRIBUTION |
80 |
|
|
# undef ALLOW_RUNOFF_COST_CONTRIBUTION |
81 |
|
|
|
82 |
|
|
# define ALLOW_THETA0_COST_CONTRIBUTION |
83 |
|
|
# undef ALLOW_SALT0_COST_CONTRIBUTION |
84 |
|
|
# define ALLOW_THETA_COST_CONTRIBUTION |
85 |
|
|
# undef ALLOW_SALT_COST_CONTRIBUTION |
86 |
|
|
# undef ALLOW_SST_COST_CONTRIBUTION |
87 |
|
|
# undef ALLOW_SSS_COST_CONTRIBUTION |
88 |
|
|
|
89 |
|
|
# undef ALLOW_SSH_MEAN_COST_CONTRIBUTION |
90 |
|
|
# undef ALLOW_SSH_TPANOM_COST_CONTRIBUTION |
91 |
|
|
# undef ALLOW_SSH_ERSANOM_COST_CONTRIBUTION |
92 |
|
|
# undef ALLOW_SPH_PROJECTION |
93 |
|
|
# if (defined (ALLOW_SSH_MEAN_COST_CONTRIBUTION) || \ |
94 |
|
|
defined (ALLOW_SSH_TPANOM_COST_CONTRIBUTION) || \ |
95 |
|
|
defined (ALLOW_SSH_ERSANOM_COST_CONTRIBUTION)) |
96 |
|
|
# define ALLOW_SSH_COST_CONTRIBUTION |
97 |
|
|
# endif |
98 |
|
|
|
99 |
|
|
# undef ALLOW_CTDT_COST_CONTRIBUTION |
100 |
|
|
# undef ALLOW_CTDS_COST_CONTRIBUTION |
101 |
|
|
# undef ALLOW_XBT_COST_CONTRIBUTION |
102 |
|
|
# undef ALLOW_COST_ATLANTIC |
103 |
|
|
|
104 |
|
|
c >>> Open boundaries |
105 |
|
|
c >>> Make sure that ALLOW_OBCS is defined |
106 |
|
|
# define ALLOW_OBCSN_COST_CONTRIBUTION |
107 |
|
|
# define ALLOW_OBCSS_COST_CONTRIBUTION |
108 |
|
|
# define ALLOW_OBCSW_COST_CONTRIBUTION |
109 |
|
|
# define ALLOW_OBCSE_COST_CONTRIBUTION |
110 |
|
|
# if (defined (ALLOW_OBCSN_COST_CONTRIBUTION) || \ |
111 |
|
|
defined (ALLOW_OBCSS_COST_CONTRIBUTION) || \ |
112 |
|
|
defined (ALLOW_OBCSW_COST_CONTRIBUTION) || \ |
113 |
|
|
defined (ALLOW_OBCSE_COST_CONTRIBUTION)) |
114 |
|
|
# define ALLOW_OBCS_COST_CONTRIBUTION |
115 |
|
|
# endif |
116 |
|
|
CMM |
117 |
|
|
# undef ALLOW_IESTAU_COST_CONTRIBUTION |
118 |
|
|
c >>> Sea-ice volume |
119 |
|
|
# undef ALLOW_COST_ICE |
120 |
|
|
|
121 |
|
|
c >>> Sea-ice misfit to obs |
122 |
|
|
# undef ALLOW_SEAICE_COST_SMR_AREA |
123 |
|
|
|
124 |
|
|
#endif /* ALLOW_COST */ |
125 |
|
|
|
126 |
|
|
C ******************************************************************** |
127 |
|
|
C *** Control vector Package *** |
128 |
|
|
C ******************************************************************** |
129 |
|
|
C |
130 |
|
|
#define ALLOW_NONDIMENSIONAL_CONTROL_IO |
131 |
|
|
#undef ALLOW_TAMC_SINGLEPREC_COMLEV |
132 |
|
|
|
133 |
|
|
C >>> Initial values. |
134 |
|
|
#define ALLOW_THETA0_CONTROL |
135 |
|
|
#undef ALLOW_SALT0_CONTROL |
136 |
|
|
|
137 |
|
|
C >>> Initial seaice |
138 |
|
|
#undef ALLOW_SIAREA_CONTROL |
139 |
|
|
#undef ALLOW_SIHEFF_CONTROL |
140 |
|
|
|
141 |
|
|
C >>> Surface fluxes. |
142 |
|
|
#undef ALLOW_HFLUX_CONTROL |
143 |
|
|
#undef ALLOW_SFLUX_CONTROL |
144 |
|
|
#undef ALLOW_USTRESS_CONTROL |
145 |
|
|
#undef ALLOW_VSTRESS_CONTROL |
146 |
|
|
|
147 |
|
|
C >>> Atmospheric state. |
148 |
|
|
#undef ALLOW_ATEMP_CONTROL |
149 |
|
|
#undef ALLOW_AQH_CONTROL |
150 |
|
|
#undef ALLOW_PRECIP_CONTROL |
151 |
|
|
#undef ALLOW_SNOWPRECIP_CONTROL |
152 |
|
|
#undef ALLOW_SWDOWN_CONTROL |
153 |
|
|
#undef ALLOW_LWDOWN_CONTROL |
154 |
|
|
#undef ALLOW_UWIND_CONTROL |
155 |
|
|
#undef ALLOW_VWIND_CONTROL |
156 |
|
|
#undef ALLOW_EVAP_CONTROL |
157 |
|
|
#undef ALLOW_APRESSURE_CONTROL |
158 |
|
|
#undef ALLOW_RUNOFF_CONTROL |
159 |
|
|
|
160 |
|
|
C >>> Radiation |
161 |
|
|
#undef ALLOW_SWFLUX_CONTROL |
162 |
|
|
#undef ALLOW_LWFLUX_CONTROL |
163 |
|
|
|
164 |
|
|
C >>> seaice init. conditions |
165 |
|
|
#undef ALLOW_SIAREA_CONTROL |
166 |
|
|
#undef ALLOW_SIHEFF_CONTROL |
167 |
|
|
#undef ALLOW_SIHSNOW_CONTROL |
168 |
|
|
|
169 |
|
|
C >>> Open boundaries |
170 |
|
|
c >>> Make sure that ALLOW_OBCS is defined |
171 |
|
|
#define ALLOW_OBCSN_CONTROL |
172 |
|
|
#define ALLOW_OBCSS_CONTROL |
173 |
|
|
#define ALLOW_OBCSW_CONTROL |
174 |
|
|
#define ALLOW_OBCSE_CONTROL |
175 |
|
|
#if (defined (ALLOW_OBCSN_CONTROL) || \ |
176 |
|
|
defined (ALLOW_OBCSS_CONTROL) || \ |
177 |
|
|
defined (ALLOW_OBCSW_CONTROL) || \ |
178 |
|
|
defined (ALLOW_OBCSE_CONTROL)) |
179 |
|
|
# define ALLOW_OBCS_CONTROL |
180 |
|
|
#endif |
181 |
|
|
#define ALLOW_OBCS_CONTROL_MODES |
182 |
|
|
|
183 |
|
|
C ******************************************************************** |
184 |
|
|
C *** External forcing Package *** |
185 |
|
|
C ******************************************************************** |
186 |
|
|
C |
187 |
|
|
C o Include/exclude the external forcing package. To use this package, |
188 |
|
|
C you have to include the calendar tool as well. KPP can be switched |
189 |
|
|
C on or off. The implementation automatically takes care of this. |
190 |
|
|
#define INCLUDE_EXTERNAL_FORCING_PACKAGE |
191 |
|
|
|
192 |
|
|
C Do more printout for the protocol file than usual. |
193 |
|
|
#undef EXF_VERBOSE |
194 |
|
|
|
195 |
|
|
C Bulk formulae related flags. |
196 |
|
|
#undef ALLOW_BULK_LARGYEAG04 |
197 |
|
|
#undef ALLOW_ATM_TEMP |
198 |
|
|
#undef ALLOW_ATM_WIND |
199 |
|
|
#undef ALLOW_BULKFORMULAE |
200 |
|
|
#undef ALLOW_DOWNWARD_RADIATION |
201 |
|
|
#undef ALLOW_RUNOFF |
202 |
|
|
#undef EXF_READ_EVAP |
203 |
|
|
|
204 |
|
|
C Relaxation to monthly climatologies. |
205 |
|
|
#undef ALLOW_CLIMSST_RELAXATION |
206 |
|
|
#undef ALLOW_CLIMSSS_RELAXATION |