/[MITgcm]/MITgcm/verification/advect_cs/code/GAD_OPTIONS.h
ViewVC logotype

Annotation of /MITgcm/verification/advect_cs/code/GAD_OPTIONS.h

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


Revision 1.3 - (hide annotations) (download)
Sat Dec 24 01:17:50 2011 UTC (12 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64d, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint64
Changes since 1.2: +4 -3 lines
File MIME type: text/plain
bring OPTIONS files up-to-date

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/verification/advect_cs/code/GAD_OPTIONS.h,v 1.2 2008/05/09 21:46:25 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     CBOP
5     C !ROUTINE: GAD_OPTIONS.h
6    
7     C !INTERFACE:
8 jmc 1.2 C #include "GAD_OPTIONS.h"
9 jmc 1.1
10     C !DESCRIPTION:
11     C Contains CPP macros/flags for controlling optional features of package.
12     CEOP
13    
14     C CPP options file for GAD (Generic Advection Diffusion) package
15     C
16     C Use this file for selecting options within the GAD package
17    
18     #ifndef GAD_OPTIONS_H
19     #define GAD_OPTIONS_H
20     #include "PACKAGES_CONFIG.h"
21 jmc 1.3 #include "CPP_OPTIONS.h"
22    
23 jmc 1.1 #ifdef ALLOW_GENERIC_ADVDIFF
24 jmc 1.3 C Package-specific Options & Macros go here
25 jmc 1.1
26     C This flag selects the form of COSINE(lat) scaling of bi-harmonic term.
27     C *only for use on a lat-lon grid*
28     C Setting this flag here only affects the bi-harmonic tracer terms; to
29     C use COSINEMETH_III in the momentum equations set it CPP_OPTIONS.h
30     #define COSINEMETH_III
31    
32     C This selects isotropic scaling of harmonic and bi-harmonic term when
33     C using the COSINE(lat) scaling.
34     C Setting this flag here only affects the tracer diffusion terms; to
35 jmc 1.2 C use ISOTROPIC_COS_SCALING of the horizontal viscosity terms in the
36 jmc 1.1 C momentum equations set it CPP_OPTIONS.h; the following line
37     C even overrides setting the flag in CPP_OPTIONS.h
38     #undef ISOTROPIC_COS_SCALING
39    
40     C As of checkpoint41, the inclusion of multi-dimensional advection
41     C introduces excessive recomputation/storage for the adjoint.
42     C We can disable it here using CPP because run-time flags are insufficient.
43     #undef DISABLE_MULTIDIM_ADVECTION
44    
45 jmc 1.2 C This enable the use of 2nd-Order Moment advection scheme (Prather, 1986) for
46     C Temperature and Salinity ; due to large memory space (10 times more / tracer)
47     C requirement, by default, this part of the code is not compiled.
48     #define GAD_ALLOW_TS_SOM_ADV
49 jmc 1.1
50     #else
51    
52     C If GAD is disabled then so is multi-dimensional advection
53     #define DISABLE_MULTIDIM_ADVECTION
54    
55     #endif /* ALLOW_GENERIC_ADVDIFF */
56     #endif /* GAD_OPTIONS_H */

  ViewVC Help
Powered by ViewVC 1.1.22