1 |
C $Header: /u/gcmpack/MITgcm/verification/tutorial_tracer_adjsens/code_ad/ECCO_CPPOPTIONS.h,v 1.7 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 |
#define AUTODIFF_2_LEVEL_CHECKPOINT |
32 |
|
33 |
C o use divided adjoint to split adjoint computations |
34 |
#undef ALLOW_DIVIDED_ADJOINT |
35 |
|
36 |
C o write separate tape files for each ptracer |
37 |
#define AUTODIFF_PTRACERS_SPLIT_FILES |
38 |
|
39 |
C ******************************************************************** |
40 |
C *** Calendar Package *** |
41 |
C ******************************************************************** |
42 |
|
43 |
C CPP flags controlling which code is included in the files that |
44 |
C will be compiled. |
45 |
|
46 |
CPH >>>>>> THERE ARE NO MORE CAL OPTIONS TO BE SET <<<<<< |
47 |
|
48 |
C ******************************************************************** |
49 |
C *** Cost function Package *** |
50 |
C ******************************************************************** |
51 |
|
52 |
C >>> Cost function contributions |
53 |
#undef ALLOW_COST_TEST |
54 |
#define ALLOW_COST_TRACER |
55 |
#undef ALLOW_COST_ATLANTIC_HEAT |
56 |
|
57 |
C ******************************************************************** |
58 |
C *** Control vector Package *** |
59 |
C ******************************************************************** |
60 |
|
61 |
#define EXCLUDE_CTRL_PACK |
62 |
#undef ALLOW_NONDIMENSIONAL_CONTROL_IO |
63 |
|
64 |
C >>> Initial values. |
65 |
#define ALLOW_THETA0_CONTROL |
66 |
#define ALLOW_SALT0_CONTROL |
67 |
cph#define ALLOW_TR10_CONTROL |
68 |
#define ALLOW_GENARR3D_CONTROL |
69 |
#define ALLOW_TAUU0_CONTROL |
70 |
#define ALLOW_TAUV0_CONTROL |
71 |
#define ALLOW_SFLUX0_CONTROL |
72 |
#define ALLOW_HFLUX0_CONTROL |
73 |
#undef ALLOW_SSS0_CONTROL |
74 |
#undef ALLOW_SST0_CONTROL |
75 |
#define ALLOW_DIFFKR_CONTROL |
76 |
#undef ALLOW_KAPGM_CONTROL |
77 |
|
78 |
C ******************************************************************** |
79 |
#endif /* ECCO_CPPOPTIONS_H */ |