/[MITgcm]/MITgcm/pkg/generic_advdiff/GAD_OPTIONS.h
ViewVC logotype

Diff of /MITgcm/pkg/generic_advdiff/GAD_OPTIONS.h

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

revision 1.12 by jahn, Mon May 5 16:14:58 2008 UTC revision 1.13 by jmc, Fri May 9 21:43:16 2008 UTC
# Line 5  CBOP Line 5  CBOP
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.
# Line 31  C use COSINEMETH_III in the momentum equ Line 31  C use COSINEMETH_III in the momentum equ
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
# Line 41  C introduces excessive recomputation/sto Line 41  C introduces excessive recomputation/sto
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
# Line 65  C due to contributions from gad_calc_rhs Line 65  C due to contributions from gad_calc_rhs
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

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.22