1 |
dgoldberg |
1.1 |
C $Header: /u/gcmpack/MITgcm/verification/isomip/code_ad/ECCO_CPPOPTIONS.h,v 1.3 2013/07/24 20:53:07 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#ifndef ECCO_CPPOPTIONS_H |
5 |
|
|
#define ECCO_CPPOPTIONS_H |
6 |
|
|
|
7 |
|
|
C-- Collect here, in a single option-file, options to control which optional |
8 |
|
|
C features to compile in packages AUTODIFF, COST, CTRL, ECCO, CAL and EXF. |
9 |
|
|
C If used, this option-file needs to be directly included in CPP_OPTIONS.h |
10 |
|
|
C Although this method, inherited from ECCO setup, has been traditionally |
11 |
|
|
C used for all adjoint built, work is in progess to allow to use the |
12 |
|
|
C standard metod (each of the above pkg get its own options from its |
13 |
|
|
C specific option-file) also for adjoint built. |
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 |
|
|
|
23 |
|
|
#define ALLOW_AUTODIFF_TAMC |
24 |
|
|
C >>> Checkpointing as handled by TAMC |
25 |
|
|
#define ALLOW_TAMC_CHECKPOINTING |
26 |
|
|
|
27 |
|
|
C >>> Extract adjoint state |
28 |
|
|
#define ALLOW_AUTODIFF_MONITOR |
29 |
|
|
|
30 |
|
|
C >>> DO 2-level checkpointing instead of 3-level |
31 |
|
|
#undef AUTODIFF_2_LEVEL_CHECKPOINT |
32 |
|
|
|
33 |
|
|
C o use divided adjoint to split adjoint computations |
34 |
|
|
#undef ALLOW_DIVIDED_ADJOINT |
35 |
|
|
|
36 |
|
|
C ******************************************************************** |
37 |
|
|
C *** Calendar Package *** |
38 |
|
|
C ******************************************************************** |
39 |
|
|
|
40 |
|
|
C CPP flags controlling which code is included in the files that |
41 |
|
|
C will be compiled. |
42 |
|
|
|
43 |
|
|
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
44 |
|
|
|
45 |
|
|
C ******************************************************************** |
46 |
|
|
C *** Cost function Package *** |
47 |
|
|
C ******************************************************************** |
48 |
|
|
|
49 |
|
|
C >>> Cost function contributions |
50 |
|
|
#define ALLOW_COST_TEST |
51 |
|
|
#define ALLOW_COST_TSQUARED |
52 |
|
|
|
53 |
|
|
C ******************************************************************** |
54 |
|
|
C *** Control vector Package *** |
55 |
|
|
C ******************************************************************** |
56 |
|
|
|
57 |
|
|
#define EXCLUDE_CTRL_PACK |
58 |
|
|
#undef ALLOW_NONDIMENSIONAL_CONTROL_IO |
59 |
|
|
|
60 |
|
|
C >>> Initial values. |
61 |
|
|
#define ALLOW_THETA0_CONTROL |
62 |
|
|
#define ALLOW_SALT0_CONTROL |
63 |
|
|
#define ALLOW_DIFFKR_CONTROL |
64 |
|
|
#define ALLOW_SHIFWFLX_CONTROL |
65 |
|
|
c#define ALLOW_TR10_CONTROL |
66 |
|
|
c#define ALLOW_TAUU0_CONTROL |
67 |
|
|
c#define ALLOW_TAUV0_CONTROL |
68 |
|
|
c#define ALLOW_SFLUX0_CONTROL |
69 |
|
|
c#define ALLOW_HFLUX0_CONTROL |
70 |
|
|
c#undef ALLOW_SSS0_CONTROL |
71 |
|
|
c#undef ALLOW_SST0_CONTROL |
72 |
|
|
c#define ALLOW_DIFFKR_CONTROL |
73 |
|
|
|
74 |
|
|
C ******************************************************************** |
75 |
|
|
C *** External forcing Package *** |
76 |
|
|
C ******************************************************************** |
77 |
|
|
|
78 |
|
|
C Do more printout for the protocol file than usual. |
79 |
|
|
#define EXF_VERBOSE |
80 |
|
|
|
81 |
|
|
C Bulk formulae related flags. |
82 |
|
|
#define ALLOW_ATM_TEMP |
83 |
|
|
#undef ALLOW_ATM_WIND |
84 |
|
|
#define ALLOW_DOWNWARD_RADIATION |
85 |
|
|
#define ALLOW_RUNOFF |
86 |
|
|
#if (defined (ALLOW_ATM_TEMP) || \ |
87 |
|
|
defined (ALLOW_ATM_WIND)) |
88 |
|
|
# define ALLOW_BULKFORMULAE |
89 |
|
|
# undef ALLOW_BULK_LARGEYEAGER04 |
90 |
|
|
#endif |
91 |
|
|
|
92 |
|
|
C Relaxation to monthly climatologies. |
93 |
|
|
#define ALLOW_CLIMSST_RELAXATION |
94 |
|
|
#define ALLOW_CLIMSSS_RELAXATION |
95 |
|
|
|
96 |
|
|
C Use spatial interpolation to interpolate |
97 |
|
|
C forcing files from input grid to model grid. |
98 |
|
|
#undef USE_EXF_INTERPOLATION |
99 |
|
|
|
100 |
|
|
#define EXF_INTERP_USE_DYNALLOC |
101 |
|
|
#if ( defined (EXF_INTERP_USE_DYNALLOC) & defined (USING_THREADS) ) |
102 |
|
|
# define EXF_IREAD_USE_GLOBAL_POINTER |
103 |
|
|
#endif |
104 |
|
|
|
105 |
|
|
C >>> No Open boundaries |
106 |
|
|
#undef ALLOW_OBCSN_CONTROL |
107 |
|
|
#undef ALLOW_OBCSS_CONTROL |
108 |
|
|
#undef ALLOW_OBCSW_CONTROL |
109 |
|
|
#undef ALLOW_OBCSE_CONTROL |
110 |
|
|
|
111 |
|
|
C ******************************************************************** |
112 |
|
|
#endif /* ECCO_CPPOPTIONS_H */ |