/[MITgcm]/MITgcm/verification/global_ocean.90x40x15/code_ad/CPP_OPTIONS.h
ViewVC logotype

Annotation of /MITgcm/verification/global_ocean.90x40x15/code_ad/CPP_OPTIONS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Thu Oct 23 04:41:41 2003 UTC (20 years, 7 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51n_post, checkpoint51n_pre
Branch point for: checkpoint51n_branch
Changes since 1.4: +6 -1 lines
File MIME type: text/plain
 o added the [#include "AD_CONFIG.h"] statement to all files that need
   it for adjoint/tl #defines
 o re-worked the build logic in genmake2 to support AD_CONFIG.h
 o removed tools/genmake since it no longer works

1 edhill 1.5 C
2     C $Header: $
3     C $Name: $
4    
5     #include "AD_CONFIG.h"
6    
7 heimbach 1.2 C
8     C CPP flags controlling which code in included in the files that
9     C will be compiled.
10    
11 edhill 1.4 #include "PACKAGES_CONFIG.h"
12 heimbach 1.2
13     #ifdef ALLOW_KPP
14     #define SHORTWAVE_HEATING
15     #endif
16    
17     C coriolis terms
18     #define INCLUDE_CD_CODE
19    
20     C o Include/exclude temperature advection code
21     cph
22     #undef INCLUDE_TR1_ADVECTION_CODE
23     #define INCLUDE_T_ADVECTION_CODE
24     #ifdef INCLUDE_T_ADVECTION_CODE
25     #define _ADT(a)a
26     #endif
27     #ifndef INCLUDE_T_ADVECTION_CODE
28     #define _ADT(a)
29     #endif
30    
31     C o Include/exclude temperature diffusion code
32     #undef INCLUDE_TR1_DIFFUSION_CODE
33     #define INCLUDE_T_DIFFUSION_CODE
34     #ifdef INCLUDE_T_DIFFUSION_CODE
35     #define _LPT(a)a
36     #define _BHT(a)a
37     #endif
38     #ifndef INCLUDE_T_DIFFUSION_CODE
39     #define _LPT(a)
40     #define _BHT(a)
41     #endif
42    
43     C o Include/exclude temperature forcing code
44     cph
45     #undef INCLUDE_TR1_FORCING_CODE
46     #define INCLUDE_T_FORCING_CODE
47    
48     C o Include/exclude momentum advection code
49     cph
50     #define INCLUDE_MOMENTUM_ADVECTION_CODE
51     #ifdef INCLUDE_MOMENTUM_ADVECTION_CODE
52     #define _ADM(a)a
53     #endif
54     #ifndef INCLUDE_MOMENTUM_ADVECTION_CODE
55     #define _ADM(a)
56     #endif
57    
58     C o Include/exclude laplacian viscosity code
59     #define INCLUDE_LP_MOMENTUM_DIFFUSION_CODE
60     #ifdef INCLUDE_LP_MOMENTUM_DIFFUSION_CODE
61     #define _LPM(a)a
62     #endif
63     #ifndef INCLUDE_LP_MOMENTUM_DIFFUSION_CODE
64     #define _LPM(a)
65     #endif
66    
67     C o Include/exclude biharmonic viscosity code
68     #define INCLUDE_BH_MOMENTUM_DIFFUSION_CODE
69     #ifdef INCLUDE_BH_MOMENTUM_DIFFUSION_CODE
70     #define _BHM(a)a
71     #else
72     #define _BHM(a)
73     #endif
74    
75     C o Include/exclude gradient of phy_hyd code
76     #define INCLUDE_GRADPH_CODE
77     #ifdef INCLUDE_GRADPH_CODE
78     #define _PHM(a)a
79     #endif
80     #ifndef INCLUDE_GRADPH_CODE
81     #define _PHM(a)
82     #endif
83    
84     C o Include/exclude momentum forcing code
85     cph
86     #define INCLUDE_MOMENTUM_FORCING_CODE
87    
88     C o Include/exclude momentum eqn metric terms code
89     #define INCLUDE_MOMENTUM_METRIC_TERM_CODE
90    
91     C o Include/exclude phi_hyd calculation code
92     #define INCLUDE_PHIHYD_CALCULATION_CODE
93    
94     C o Include/exclude call to S/R CONVECT
95     #define INCLUDE_CONVECT_CALL
96    
97     C o Include/exclude call to S/R CALC_DIFFUSIVITY
98     #define INCLUDE_CALC_DIFFUSIVITY_CALL
99    
100     C o Allow nonHydrostatic code
101     #undef ALLOW_NONHYDROSTATIC
102    
103     C o Use "natural" boundary conditions for salinity
104     C instead of the "virtual salt flux"
105     #undef USE_NATURAL_BCS
106    
107     C o Use "OLD" UV discretisation near boundaries (*not* recommended)
108     C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F
109     C because the old code did not have no-slip BCs
110     #undef OLD_ADV_BCS
111    
112     C o Use "OLD" UV geometry on sphere (definately *NOT* recommended)
113     C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F
114     C because the old code did not have no-slip BCs
115     #undef OLD_UV_GEOMETRY
116    
117     C o Read/write of checkpoint files for restarting.
118     #undef OLD_STYLE_WITH_MANY_FILES
119    
120     C o Exact volume conservation
121     #undef EXACT_CONSERV
122    
123     C o Add passive tracer advection routines
124     #undef ALLOW_PASSIVE_TRACER
125    
126     C o Include/exclude monitor package
127     #define EXCLUDE_MONITOR
128    
129     C o Execution environment support options
130     #include "CPP_EEOPTIONS.h"
131    
132     C o Include/exclude code specific to the ECCO/SEALION version.
133     #undef INCLUDE_ECCO_PACKAGE
134     #define ALLOW_ADJOINT_RUN
135     #define ALLOW_GRADIENT_CHECK
136     #undef ALLOW_TANGENTLINEAR_RUN
137    
138     #if (defined (INCLUDE_ECCO_PACKAGE) || \
139     defined (ALLOW_ADJOINT_RUN) || \
140     defined (ALLOW_TANGENTLINEAR_RUN))
141     #include "ECCO_CPPOPTIONS.h"
142     #endif
143    
144    
145    

  ViewVC Help
Powered by ViewVC 1.1.22