1 |
C $Header: /u/gcmpack/MITgcm/model/inc/CPP_OPTIONS.h,v 1.42 2007/11/28 00:18:16 dimitri Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#ifndef CPP_OPTIONS_H |
5 |
#define CPP_OPTIONS_H |
6 |
|
7 |
C CPP flags controlling particular source code features |
8 |
|
9 |
C********* RELEVANT CHANGES ********* |
10 |
|
11 |
C o Allow the use of Non-Linear Free-Surface formulation |
12 |
C this implies that surface thickness (hFactors) vary with time |
13 |
#define NONLIN_FRSURF |
14 |
|
15 |
C o NEW OPTION to disable rStar (z*) code |
16 |
#define DISABLE_RSTAR_CODE |
17 |
|
18 |
C********* RELEVANT CHANGES ********* |
19 |
|
20 |
C o Shortwave heating as extra term in external_forcing.F |
21 |
C Note: this should be a run-time option |
22 |
#define SHORTWAVE_HEATING |
23 |
|
24 |
C o Include/exclude phi_hyd calculation code |
25 |
#define INCLUDE_PHIHYD_CALCULATION_CODE |
26 |
|
27 |
C o Include/exclude call to S/R CONVECT |
28 |
#define INCLUDE_CONVECT_CALL |
29 |
|
30 |
C o Include/exclude call to S/R CALC_DIFFUSIVITY |
31 |
#define INCLUDE_CALC_DIFFUSIVITY_CALL |
32 |
|
33 |
C o Include/exclude Implicit vertical advection code |
34 |
#undef INCLUDE_IMPLVERTADV_CODE |
35 |
|
36 |
C o Include/exclude nonHydrostatic code |
37 |
#undef ALLOW_NONHYDROSTATIC |
38 |
|
39 |
C o Include pressure loading code |
40 |
#define ATMOSPHERIC_LOADING |
41 |
|
42 |
C o Allow latitudinally varying BryanLewis79 vertical diffusivity |
43 |
#undef ALLOW_BL79_LAT_VARY |
44 |
|
45 |
C o Allow full 3D specification of vertical viscosity |
46 |
#define ALLOW_3D_VISCA4 |
47 |
|
48 |
C o Allow full 3D specification of vertical diffusivity |
49 |
#define ALLOW_3D_DIFFKR |
50 |
|
51 |
C o Use "Exact Convervation" of fluid in Free-Surface formulation |
52 |
C so that d/dt(eta) is exactly equal to - Div.Transport |
53 |
#define EXACT_CONSERV |
54 |
|
55 |
C o Use "OLD" UV discretisation near boundaries (*not* recommended) |
56 |
C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F |
57 |
C because the old code did not have no-slip BCs |
58 |
#undef OLD_ADV_BCS |
59 |
|
60 |
C o Use LONG.bin, LATG.bin, etc., initialization for ini_curviliear_grid.F |
61 |
C Default is to use "new" grid files (OLD_GRID_IO undef) but OLD_GRID_IO |
62 |
C is still useful with, e.g., single-domain curvilinear configurations. |
63 |
#define OLD_GRID_IO |
64 |
|
65 |
C o Use thsice+seaice (old) call sequence: ice-Dyn,ice-Advect,ice-Thermo(thsice) |
66 |
C as opposed to new sequence: ice-Thermo(thsice),ice-Dyn,ice-Advect |
67 |
#undef OLD_THSICE_CALL_SEQUENCE |
68 |
|
69 |
C o Execution environment support options |
70 |
#include "CPP_EEOPTIONS.h" |
71 |
|
72 |
C o Include/exclude code specific to the ECCO/SEALION version. |
73 |
C AUTODIFF or EXF package. |
74 |
C Currently controled by a single header file |
75 |
C For this to work, PACKAGES_CONFIG.h needs to be included! |
76 |
cph#if (defined (ALLOW_AUTODIFF) || \ |
77 |
cph defined (ALLOW_ECCO) || \ |
78 |
cph defined (ALLOW_EXF)) |
79 |
cph# include "ECCO_CPPOPTIONS.h" |
80 |
cph#endif |
81 |
|
82 |
#endif /* CPP_OPTIONS_H */ |
83 |
|