5 |
C !ROUTINE: GAD_OPTIONS.h |
C !ROUTINE: GAD_OPTIONS.h |
6 |
|
|
7 |
C !INTERFACE: |
C !INTERFACE: |
8 |
C #include "GAD_OPTIONS.h" |
C #include "GAD_OPTIONS.h" |
9 |
|
|
10 |
C !DESCRIPTION: |
C !DESCRIPTION: |
11 |
C Contains CPP macros/flags for controlling optional features of package. |
C Contains CPP macros/flags for controlling optional features of package. |
31 |
C This selects isotropic scaling of harmonic and bi-harmonic term when |
C This selects isotropic scaling of harmonic and bi-harmonic term when |
32 |
C using the COSINE(lat) scaling. |
C using the COSINE(lat) scaling. |
33 |
C Setting this flag here only affects the tracer diffusion terms; to |
C Setting this flag here only affects the tracer diffusion terms; to |
34 |
C use ISOTROPIC_COS_SCALING of the horizontal viscosity terms in the |
C use ISOTROPIC_COS_SCALING of the horizontal viscosity terms in the |
35 |
C momentum equations set it CPP_OPTIONS.h; the following line |
C momentum equations set it CPP_OPTIONS.h; the following line |
36 |
C even overrides setting the flag in CPP_OPTIONS.h |
C even overrides setting the flag in CPP_OPTIONS.h |
37 |
#undef ISOTROPIC_COS_SCALING |
#undef ISOTROPIC_COS_SCALING |
41 |
C We can disable it here using CPP because run-time flags are insufficient. |
C We can disable it here using CPP because run-time flags are insufficient. |
42 |
#undef DISABLE_MULTIDIM_ADVECTION |
#undef DISABLE_MULTIDIM_ADVECTION |
43 |
|
|
44 |
C This enable the use of 2nd-Order Moment advection scheme (Prather, 1986) |
C This enable the use of 2nd-Order Moment advection scheme (Prather, 1986) for |
45 |
C due to large memory space (10 times more / tracer) requirement, |
C Temperature and Salinity ; due to large memory space (10 times more / tracer) |
46 |
C by default, this part of the code is not compiled. |
C requirement, by default, this part of the code is not compiled. |
47 |
#undef GAD_ALLOW_SOM_ADVECT |
#undef GAD_ALLOW_TS_SOM_ADV |
48 |
|
|
49 |
C Hack to get rid of negatives caused by Redi. Works by restricting the |
C Hack to get rid of negatives caused by Redi. Works by restricting the |
50 |
C outgoing flux (only contributions computed in gad_calc_rhs) for each cell |
C outgoing flux (only contributions computed in gad_calc_rhs) for each cell |
51 |
C to be no more than the amount of tracer in the cell (see Smolarkiewicz |
C to be no more than the amount of tracer in the cell (see Smolarkiewicz |
52 |
C MWR 1989 and Bott MWR 1989). |
C MWR 1989 and Bott MWR 1989). |
53 |
C The flux contributions computed in gad_calc_rhs which are affected by |
C The flux contributions computed in gad_calc_rhs which are affected by |
65 |
C contributions (or roundoff errors), it may be necessary to reduce this |
C contributions (or roundoff errors), it may be necessary to reduce this |
66 |
C value to achieve strict positivity. |
C value to achieve strict positivity. |
67 |
C |
C |
68 |
C This hack applies to all tracers except temperature and salinity! |
C This hack applies to all tracers except temperature and salinity! |
69 |
C Don't use with Adams-Bashforth (for ptracers)! |
C Don't use with Adams-Bashforth (for ptracers)! |
70 |
C Don't use with OBCS! |
C Don't use with OBCS! |
71 |
#undef GAD_SMOLARKIEWICZ_HACK |
#undef GAD_SMOLARKIEWICZ_HACK |