| 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 diffusivity |
| 46 |
#define ALLOW_3D_DIFFKR |
| 47 |
|
| 48 |
C o Use "Exact Convervation" of fluid in Free-Surface formulation |
| 49 |
C so that d/dt(eta) is exactly equal to - Div.Transport |
| 50 |
#define EXACT_CONSERV |
| 51 |
|
| 52 |
C o Use "OLD" UV discretisation near boundaries (*not* recommended) |
| 53 |
C Note - only works with #undef NO_SLIP_LATERAL in calc_mom_rhs.F |
| 54 |
C because the old code did not have no-slip BCs |
| 55 |
#undef OLD_ADV_BCS |
| 56 |
|
| 57 |
C o Use LONG.bin, LATG.bin, etc., initialization for ini_curviliear_grid.F |
| 58 |
C Default is to use "new" grid files (OLD_GRID_IO undef) but OLD_GRID_IO |
| 59 |
C is still useful with, e.g., single-domain curvilinear configurations. |
| 60 |
#define OLD_GRID_IO |
| 61 |
|
| 62 |
C o Execution environment support options |
| 63 |
#include "CPP_EEOPTIONS.h" |
| 64 |
|
| 65 |
C o Include/exclude code specific to the ECCO/SEALION version. |
| 66 |
C AUTODIFF or EXF package. |
| 67 |
C Currently controled by a single header file |
| 68 |
C For this to work, PACKAGES_CONFIG.h needs to be included! |
| 69 |
cph#if (defined (ALLOW_AUTODIFF) || \ |
| 70 |
cph defined (ALLOW_ECCO) || \ |
| 71 |
cph defined (ALLOW_EXF)) |
| 72 |
cph# include "ECCO_CPPOPTIONS.h" |
| 73 |
cph#endif |
| 74 |
|
| 75 |
#endif /* CPP_OPTIONS_H */ |
| 76 |
|