1 |
heimbach |
1.1 |
C $Header: /u/gcmpack/MITgcm/verification/lab_sea/code/ECCO_CPPOPTIONS.h,v 1.6 2004/03/17 23:30:51 dimitri Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
C CPP flags controlling which code is included in the files that |
5 |
|
|
C will be compiled. |
6 |
|
|
C |
7 |
|
|
C ******************************************************************** |
8 |
|
|
C *** ECCO Package *** |
9 |
|
|
C ******************************************************************** |
10 |
|
|
C |
11 |
|
|
#undef ALLOW_ECCO_FORWARD_RUN |
12 |
|
|
#undef ALLOW_ECCO_DIAGNOSTICS_RUN |
13 |
|
|
#define ALLOW_ECCO_OPTIMIZATION |
14 |
|
|
|
15 |
|
|
C ******************************************************************** |
16 |
|
|
C *** Adjoint Support Package *** |
17 |
|
|
C ******************************************************************** |
18 |
|
|
|
19 |
|
|
C o Include/exclude code in order to be able to automatically |
20 |
|
|
C differentiate the MITgcmUV by using the Tangent Linear and |
21 |
|
|
C Adjoint Model Compiler (TAMC). |
22 |
|
|
#define INCLUDE_AUTODIFF_PACKAGE |
23 |
|
|
C |
24 |
|
|
#define ALLOW_AUTODIFF_TAMC |
25 |
|
|
C |
26 |
|
|
C >>> Checkpointing as handled by TAMC |
27 |
|
|
#define ALLOW_TAMC_CHECKPOINTING |
28 |
|
|
C |
29 |
|
|
C >>> Extract adjoint state |
30 |
|
|
#define ALLOW_AUTODIFF_MONITOR |
31 |
|
|
C |
32 |
|
|
C o use divided adjoint to split adjoint computations |
33 |
|
|
#undef ALLOW_DIVIDED_ADJOINT |
34 |
|
|
|
35 |
|
|
C ******************************************************************** |
36 |
|
|
C *** Cost function Package *** |
37 |
|
|
C ******************************************************************** |
38 |
|
|
C |
39 |
|
|
#define ALLOW_COST |
40 |
|
|
#ifdef ALLOW_COST |
41 |
|
|
C >>> Use the EGM-96 geoid error covariance. |
42 |
|
|
# undef ALLOW_EGM96_ERROR_COV |
43 |
|
|
# undef ALLOW_READ_EGM_DATA |
44 |
|
|
C >>> Use NSCAT data. |
45 |
|
|
# undef ALLOW_NSCAT_DATA |
46 |
|
|
C >>> Cost function contributions |
47 |
|
|
|
48 |
|
|
# undef ALLOW_HFLUX_COST_CONTRIBUTION |
49 |
|
|
# undef ALLOW_SFLUX_COST_CONTRIBUTION |
50 |
|
|
# undef ALLOW_USTRESS_COST_CONTRIBUTION |
51 |
|
|
# undef ALLOW_VSTRESS_COST_CONTRIBUTION |
52 |
|
|
|
53 |
|
|
# define ALLOW_ATEMP_COST_CONTRIBUTION |
54 |
|
|
# define ALLOW_AQH_COST_CONTRIBUTION |
55 |
|
|
# define ALLOW_UWIND_COST_CONTRIBUTION |
56 |
|
|
# define ALLOW_VWIND_COST_CONTRIBUTION |
57 |
|
|
# define ALLOW_PRECIP_COST_CONTRIBUTION |
58 |
|
|
# define ALLOW_SWDOWN_COST_CONTRIBUTION |
59 |
|
|
|
60 |
|
|
# define ALLOW_THETA_COST_CONTRIBUTION |
61 |
|
|
# define ALLOW_SALT_COST_CONTRIBUTION |
62 |
|
|
# define ALLOW_SST_COST_CONTRIBUTION |
63 |
|
|
# define ALLOW_SSS_COST_CONTRIBUTION |
64 |
|
|
|
65 |
|
|
# undef ALLOW_SSH_MEAN_COST_CONTRIBUTION |
66 |
|
|
# undef ALLOW_SSH_TPANOM_COST_CONTRIBUTION |
67 |
|
|
# undef ALLOW_SSH_ERSANOM_COST_CONTRIBUTION |
68 |
|
|
# undef ALLOW_SPH_PROJECTION |
69 |
|
|
# if (defined (ALLOW_SSH_MEAN_COST_CONTRIBUTION) || \ |
70 |
|
|
defined (ALLOW_SSH_TPANOM_COST_CONTRIBUTION) || \ |
71 |
|
|
defined (ALLOW_SSH_ERSANOM_COST_CONTRIBUTION)) |
72 |
|
|
# define ALLOW_SSH_COST_CONTRIBUTION |
73 |
|
|
# endif |
74 |
|
|
|
75 |
|
|
# undef ALLOW_CTDT_COST_CONTRIBUTION |
76 |
|
|
# undef ALLOW_CTDS_COST_CONTRIBUTION |
77 |
|
|
# undef ALLOW_XBT_COST_CONTRIBUTION |
78 |
|
|
# undef ALLOW_COST_ATLANTIC |
79 |
|
|
|
80 |
|
|
c >>> Open boundaries |
81 |
|
|
c >>> Make sure that ALLOW_OBCS is defined |
82 |
|
|
# undef ALLOW_OBCSN_COST_CONTRIBUTION |
83 |
|
|
# undef ALLOW_OBCSS_COST_CONTRIBUTION |
84 |
|
|
# undef ALLOW_OBCSW_COST_CONTRIBUTION |
85 |
|
|
# undef ALLOW_OBCSE_COST_CONTRIBUTION |
86 |
|
|
# if (defined (ALLOW_OBCSN_COST_CONTRIBUTION) || \ |
87 |
|
|
defined (ALLOW_OBCSS_COST_CONTRIBUTION) || \ |
88 |
|
|
defined (ALLOW_OBCSW_COST_CONTRIBUTION) || \ |
89 |
|
|
defined (ALLOW_OBCSE_COST_CONTRIBUTION)) |
90 |
|
|
# define ALLOW_OBCS_COST_CONTRIBUTION |
91 |
|
|
# endif |
92 |
|
|
|
93 |
|
|
c >>> Sea-ice volume |
94 |
|
|
# define ALLOW_COST_ICE |
95 |
|
|
|
96 |
|
|
c >>> Sea-ice fractional coverage misfit to SMR obs |
97 |
|
|
# define ALLOW_SEAICE_COST_SMR_AREA |
98 |
|
|
|
99 |
|
|
#endif /* ALLOW_COST */ |
100 |
|
|
|
101 |
|
|
C ******************************************************************** |
102 |
|
|
C *** Control vector Package *** |
103 |
|
|
C ******************************************************************** |
104 |
|
|
C |
105 |
|
|
#undef EXCLUDE_CTRL_PACK |
106 |
|
|
#define ALLOW_NONDIMENSIONAL_CONTROL_IO |
107 |
|
|
|
108 |
|
|
C >>> Initial values. |
109 |
|
|
#define ALLOW_THETA0_CONTROL |
110 |
|
|
#define ALLOW_SALT0_CONTROL |
111 |
|
|
|
112 |
|
|
C >>> Surface fluxes. |
113 |
|
|
#undef ALLOW_HFLUX_CONTROL |
114 |
|
|
#undef ALLOW_SFLUX_CONTROL |
115 |
|
|
#undef ALLOW_USTRESS_CONTROL |
116 |
|
|
#undef ALLOW_VSTRESS_CONTROL |
117 |
|
|
|
118 |
|
|
C >>> Atmospheric state. |
119 |
|
|
#define ALLOW_ATEMP_CONTROL |
120 |
|
|
#define ALLOW_AQH_CONTROL |
121 |
|
|
#define ALLOW_UWIND_CONTROL |
122 |
|
|
#define ALLOW_VWIND_CONTROL |
123 |
|
|
#define ALLOW_PRECIP_CONTROL |
124 |
|
|
#define ALLOW_SWDOWN_CONTROL |
125 |
|
|
|
126 |
|
|
#undef ALLOW_SST_CONTROL |
127 |
|
|
#undef ALLOW_SSS_CONTROL |
128 |
|
|
|
129 |
|
|
C >>> Open boundaries |
130 |
|
|
c >>> Make sure that ALLOW_OBCS is defined |
131 |
|
|
#undef ALLOW_OBCSN_CONTROL |
132 |
|
|
#undef ALLOW_OBCSS_CONTROL |
133 |
|
|
#undef ALLOW_OBCSW_CONTROL |
134 |
|
|
#undef ALLOW_OBCSE_CONTROL |
135 |
|
|
#if (defined (ALLOW_OBCSN_CONTROL) || \ |
136 |
|
|
defined (ALLOW_OBCSS_CONTROL) || \ |
137 |
|
|
defined (ALLOW_OBCSW_CONTROL) || \ |
138 |
|
|
defined (ALLOW_OBCSE_CONTROL)) |
139 |
|
|
# define ALLOW_OBCS_CONTROL |
140 |
|
|
#endif |
141 |
|
|
|
142 |
|
|
|
143 |
|
|
C ******************************************************************** |
144 |
|
|
C *** External forcing Package *** |
145 |
|
|
C ******************************************************************** |
146 |
|
|
C |
147 |
|
|
|
148 |
|
|
C Do more printout for the protocol file than usual. |
149 |
|
|
#undef EXF_VERBOSE |
150 |
|
|
|
151 |
|
|
C Options that are required to use pkg/exf with pkg/seaice. |
152 |
|
|
#define ALLOW_ATM_TEMP |
153 |
|
|
#define ALLOW_ATM_WIND |
154 |
|
|
#define ALLOW_DOWNWARD_RADIATION |
155 |
|
|
#define ALLOW_BULKFORMULAE |
156 |
|
|
#define ALLOW_RUNOFF |
157 |
|
|
#undef USE_EXF_INTERPOLATION |
158 |
|
|
|
159 |
|
|
C Options that control relaxation terms. |
160 |
|
|
#undef ALLOW_CLIMTEMP_RELAXATION |
161 |
|
|
#undef ALLOW_CLIMSALT_RELAXATION |
162 |
|
|
#define ALLOW_CLIMSST_RELAXATION |
163 |
|
|
#define ALLOW_CLIMSSS_RELAXATION |