1 |
C $Header: /u/gcmpack/MITgcm/verification/offline_exf_seaice/code_ad/ECCO_CPPOPTIONS.h,v 1.6 2013/03/25 02:39:33 gforget Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#ifndef ECCO_CPPOPTIONS_H |
5 |
#define ECCO_CPPOPTIONS_H |
6 |
c#include "AD_CONFIG.h" |
7 |
c#include "PACKAGES_CONFIG.h" |
8 |
c#include "CPP_OPTIONS.h" |
9 |
|
10 |
C-- Collect here, in a single option-file, options to control which optional |
11 |
C features to compile in packages AUTODIFF, COST, CTRL, ECCO, CAL and EXF. |
12 |
C If used, this option-file needs to be directly included in CPP_OPTIONS.h |
13 |
C Although this method, inherited from ECCO setup, has been traditionally |
14 |
C used for all adjoint built, work is in progess to allow to use the |
15 |
C standard metod (each of the above pkg get its own options from its |
16 |
C specific option-file) also for adjoint built. |
17 |
C |
18 |
C ******************************************************************** |
19 |
C *** ECCO Package *** |
20 |
C ******************************************************************** |
21 |
C |
22 |
C >>> Do a long protocol. |
23 |
#undef ECCO_VERBOSE |
24 |
C >>> use model/src/forward_step.F |
25 |
#define ALLOW_ECCO_EVOLUTION |
26 |
|
27 |
C ******************************************************************** |
28 |
C *** Adjoint Support Package *** |
29 |
C ******************************************************************** |
30 |
|
31 |
#define ALLOW_AUTODIFF_TAMC |
32 |
|
33 |
C >>> Checkpointing as handled by TAMC |
34 |
#define ALLOW_TAMC_CHECKPOINTING |
35 |
|
36 |
C >>> DO 2-level checkpointing instead of 3-level |
37 |
#define AUTODIFF_2_LEVEL_CHECKPOINT |
38 |
|
39 |
C >>> Extract adjoint state |
40 |
#define ALLOW_AUTODIFF_MONITOR |
41 |
|
42 |
C o use divided adjoint to split adjoint computations |
43 |
#undef ALLOW_DIVIDED_ADJOINT |
44 |
#undef ALLOW_DIVIDED_ADJOINT_MPI |
45 |
|
46 |
c#define ALLOW_AUTODIFF_WHTAPEIO |
47 |
c#define ALLOW_PACKUNPACK_METHOD2 |
48 |
c#define AUTODIFF_USE_OLDSTORE_2D |
49 |
c#define AUTODIFF_USE_OLDSTORE_3D |
50 |
c#define EXCLUDE_WHIO_GLOBUFF_2D |
51 |
c#define ALLOW_INIT_WHTAPEIO |
52 |
|
53 |
C ******************************************************************** |
54 |
C *** Cost function Package *** |
55 |
c ******************************************************************** |
56 |
C |
57 |
|
58 |
C >>> Cost function contributions |
59 |
#define ALLOW_ECCO_OLD_FC_PRINT |
60 |
|
61 |
C >>> Initial values. |
62 |
#define ALLOW_THETA0_COST_CONTRIBUTION |
63 |
|
64 |
C >>> Atmospheric state and radiation. |
65 |
#define ALLOW_ATEMP_COST_CONTRIBUTION |
66 |
#define ALLOW_SWDOWN_COST_CONTRIBUTION |
67 |
|
68 |
#define ALLOW_COST_ICE |
69 |
|
70 |
C ******************************************************************** |
71 |
C *** Control vector Package *** |
72 |
C ******************************************************************** |
73 |
C |
74 |
#define CTRL_SET_PREC_32 |
75 |
#define ALLOW_NONDIMENSIONAL_CONTROL_IO |
76 |
|
77 |
C >>> Initial values. |
78 |
#define ALLOW_THETA0_CONTROL |
79 |
|
80 |
C >>> Atmospheric state and radiation. |
81 |
#define ALLOW_ATEMP_CONTROL |
82 |
#define ALLOW_SWDOWN_CONTROL |
83 |
|
84 |
C ******************************************************************** |
85 |
C *** External forcing Package *** |
86 |
C ******************************************************************** |
87 |
|
88 |
C Bulk formulae related flags. |
89 |
#define ALLOW_ATM_TEMP |
90 |
#define ALLOW_ATM_WIND |
91 |
#define ALLOW_DOWNWARD_RADIATION |
92 |
#define ALLOW_RUNOFF |
93 |
#if (defined (ALLOW_ATM_TEMP) || defined (ALLOW_ATM_WIND)) |
94 |
# define ALLOW_BULKFORMULAE |
95 |
# undef ALLOW_BULK_LARGEYEAGER04 |
96 |
#endif |
97 |
|
98 |
C Zenith Angle/Albedo related flags. |
99 |
#ifdef ALLOW_DOWNWARD_RADIATION |
100 |
# undef ALLOW_ZENITHANGLE |
101 |
#endif |
102 |
|
103 |
C Use ocean_emissivity*lwdwon in lwFlux. This flag should be define |
104 |
C unless to reproduce old results (obtained with inconsistent old code) |
105 |
#ifdef ALLOW_DOWNWARD_RADIATION |
106 |
# define EXF_LWDOWN_WITH_EMISSIVITY |
107 |
#endif |
108 |
|
109 |
C Relaxation to monthly climatologies. |
110 |
#define ALLOW_CLIMSST_RELAXATION |
111 |
#define ALLOW_CLIMSSS_RELAXATION |
112 |
|
113 |
C Use spatial interpolation to interpolate |
114 |
C forcing files from input grid to model grid. |
115 |
#undef USE_EXF_INTERPOLATION |
116 |
C for interpolated vector fields, rotate towards model-grid axis |
117 |
C using old rotation formulae (instead of grid-angles) |
118 |
#undef EXF_USE_OLD_VEC_ROTATION |
119 |
C for interpolation around N & S pole, use the old formulation |
120 |
C (no pole symmetry, single vector-comp interp, reset to 0 zonal-comp @ N.pole) |
121 |
#undef EXF_USE_OLD_INTERP_POLE |
122 |
|
123 |
#define EXF_INTERP_USE_DYNALLOC |
124 |
#if ( defined (EXF_INTERP_USE_DYNALLOC) && defined (USING_THREADS) ) |
125 |
# define EXF_IREAD_USE_GLOBAL_POINTER |
126 |
#endif |
127 |
|
128 |
#endif /* ECCO_CPPOPTIONS_H */ |