1 |
gforget |
1.4 |
C $Header: /u/gcmpack/MITgcm/verification/tutorial_dic_adjoffline/code_ad/ECCO_CPPOPTIONS.h,v 1.3 2013/07/24 20:53:07 jmc Exp $ |
2 |
heimbach |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
jmc |
1.2 |
#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 |
heimbach |
1.1 |
|
15 |
|
|
C ******************************************************************** |
16 |
|
|
C *** Adjoint Support Package *** |
17 |
|
|
C ******************************************************************** |
18 |
|
|
|
19 |
gforget |
1.4 |
C allow use of legacy ecco/ctrl codes |
20 |
|
|
#define ECCO_CTRL_DEPRECATED |
21 |
|
|
|
22 |
heimbach |
1.1 |
C o Include/exclude code in order to be able to automatically |
23 |
|
|
C differentiate the MITgcmUV by using the Tangent Linear and |
24 |
|
|
C Adjoint Model Compiler (TAMC). |
25 |
jmc |
1.2 |
|
26 |
heimbach |
1.1 |
#define ALLOW_AUTODIFF_TAMC |
27 |
|
|
C >>> Checkpointing as handled by TAMC |
28 |
|
|
#define ALLOW_TAMC_CHECKPOINTING |
29 |
jmc |
1.2 |
|
30 |
heimbach |
1.1 |
C >>> Extract adjoint state |
31 |
|
|
#undef ALLOW_AUTODIFF_MONITOR |
32 |
jmc |
1.2 |
|
33 |
heimbach |
1.1 |
C >>> DO 2-level checkpointing instead of 3-level |
34 |
|
|
#undef AUTODIFF_2_LEVEL_CHECKPOINT |
35 |
jmc |
1.2 |
|
36 |
heimbach |
1.1 |
C o use divided adjoint to split adjoint computations |
37 |
|
|
#undef ALLOW_DIVIDED_ADJOINT |
38 |
|
|
|
39 |
|
|
C ******************************************************************** |
40 |
jmc |
1.2 |
C *** Calendar Package *** |
41 |
heimbach |
1.1 |
C ******************************************************************** |
42 |
jmc |
1.2 |
|
43 |
heimbach |
1.1 |
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 |
jmc |
1.2 |
|
52 |
heimbach |
1.1 |
C >>> Cost function contributions |
53 |
|
|
#define ALLOW_DIC_COST |
54 |
|
|
|
55 |
|
|
C ******************************************************************** |
56 |
|
|
C *** Control vector Package *** |
57 |
|
|
C ******************************************************************** |
58 |
jmc |
1.2 |
|
59 |
heimbach |
1.1 |
#define EXCLUDE_CTRL_PACK |
60 |
|
|
#undef ALLOW_NONDIMENSIONAL_CONTROL_IO |
61 |
jmc |
1.2 |
|
62 |
heimbach |
1.1 |
#define ALLOW_GEN2D_CONTROL |
63 |
|
|
#undef ALLOW_DIC_CONTROL |
64 |
jmc |
1.2 |
|
65 |
|
|
C ******************************************************************** |
66 |
|
|
#endif /* ECCO_CPPOPTIONS_H */ |