1 |
utke |
1.3 |
C $Header: /u/gcmpack/MITgcm/verification/OpenAD/code_oad/ECCO_CPPOPTIONS.h,v 1.2 2012/08/09 18:15:58 jmc Exp $ |
2 |
utke |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
utke |
1.3 |
#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 |
utke |
1.1 |
|
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 |
utke |
1.3 |
|
23 |
utke |
1.1 |
#define ALLOW_AUTODIFF_TAMC |
24 |
utke |
1.3 |
|
25 |
utke |
1.1 |
C >>> Checkpointing as handled by TAMC |
26 |
|
|
#define ALLOW_TAMC_CHECKPOINTING |
27 |
utke |
1.3 |
|
28 |
utke |
1.1 |
C >>> Extract adjoint state |
29 |
|
|
#define ALLOW_AUTODIFF_MONITOR |
30 |
utke |
1.3 |
|
31 |
utke |
1.1 |
C >>> DO 2-level checkpointing instead of 3-level |
32 |
|
|
#undef AUTODIFF_2_LEVEL_CHECKPOINT |
33 |
utke |
1.3 |
|
34 |
utke |
1.1 |
C o use divided adjoint to split adjoint computations |
35 |
|
|
#undef ALLOW_DIVIDED_ADJOINT |
36 |
utke |
1.3 |
|
37 |
utke |
1.1 |
C o Enable some temporary constructs for OpenAD |
38 |
|
|
#define ALLOW_AUTODIFF_OPENAD |
39 |
|
|
|
40 |
|
|
C ******************************************************************** |
41 |
utke |
1.3 |
C *** Calendar Package *** |
42 |
utke |
1.1 |
C ******************************************************************** |
43 |
utke |
1.3 |
|
44 |
utke |
1.1 |
C CPP flags controlling which code is included in the files that |
45 |
|
|
C will be compiled. |
46 |
|
|
|
47 |
|
|
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
48 |
|
|
|
49 |
|
|
C ******************************************************************** |
50 |
|
|
C *** Cost function Package *** |
51 |
|
|
C ******************************************************************** |
52 |
utke |
1.3 |
|
53 |
utke |
1.1 |
C >>> Cost function contributions |
54 |
|
|
#define ALLOW_COST_TEST |
55 |
|
|
#define ALLOW_COST_TSQUARED |
56 |
|
|
#undef ALLOW_COST_TRACER |
57 |
|
|
#undef ALLOW_COST_ATLANTIC_HEAT |
58 |
|
|
#undef ALLOW_COST_ATLANTIC_HEAT_DOMASS |
59 |
|
|
|
60 |
|
|
#define DISABLE_CTRL_THETA_LIMIT |
61 |
|
|
|
62 |
|
|
C ******************************************************************** |
63 |
|
|
C *** Control vector Package *** |
64 |
|
|
C ******************************************************************** |
65 |
utke |
1.3 |
|
66 |
utke |
1.1 |
#undef ALLOW_NONDIMENSIONAL_CONTROL_IO |
67 |
|
|
C >>> Initial values. |
68 |
|
|
#define ALLOW_THETA0_CONTROL |
69 |
|
|
#define ALLOW_SALT0_CONTROL |
70 |
|
|
#undef ALLOW_TR10_CONTROL |
71 |
|
|
#undef ALLOW_TAUU0_CONTROL |
72 |
|
|
#undef ALLOW_TAUV0_CONTROL |
73 |
|
|
#undef ALLOW_SFLUX0_CONTROL |
74 |
|
|
#undef ALLOW_HFLUX0_CONTROL |
75 |
|
|
#undef ALLOW_SSS0_CONTROL |
76 |
|
|
#undef ALLOW_SST0_CONTROL |
77 |
utke |
1.2 |
#undef ALLOW_DIFFKR_CONTROL |
78 |
utke |
1.1 |
#undef ALLOW_KAPGM_CONTROL |
79 |
utke |
1.3 |
|
80 |
|
|
C ******************************************************************** |
81 |
|
|
#endif /* ECCO_CPPOPTIONS_H */ |