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

Annotation of /MITgcm/pkg/generic_advdiff/GAD.h

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


Revision 1.17 - (hide annotations) (download)
Thu Jan 25 17:29:15 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint58w_post, checkpoint59e, checkpoint59d, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint58v_post, checkpoint58x_post
Changes since 1.16: +1 -2 lines
File MIME type: text/plain
no reason to include GAD_OPTIONS.h here

1 jmc 1.17 C $Header: /u/gcmpack/MITgcm/pkg/generic_advdiff/GAD.h,v 1.16 2007/01/20 21:20:11 adcroft Exp $
2 heimbach 1.4 C $Name: $
3 adcroft 1.1
4 adcroft 1.7 CBOP
5     C !ROUTINE: GAD.h
6 adcroft 1.1
7 adcroft 1.7 C !INTERFACE:
8     C #include "GAD.h"
9    
10     C !DESCRIPTION:
11     C Contains enumerated constants for distinguishing between different
12     C advection schemes and tracers.
13     C
14     C Unfortunately, there is no easy way to make use of the
15     C tokens in namelist input so for now we have to enter the
16     C tokens value into "data" (ie. 2 for 2nd order etc.)
17 adcroft 1.8
18     C !USES:
19 adcroft 1.7
20     C !DEFINED PARAMETERS:
21    
22 jmc 1.13 C ENUM_UPWIND_1RST :: 1rst Order Upwind
23     INTEGER ENUM_UPWIND_1RST
24     PARAMETER(ENUM_UPWIND_1RST=1)
25    
26 adcroft 1.7 C ENUM_CENTERED_2ND :: Centered 2nd order
27 adcroft 1.1 INTEGER ENUM_CENTERED_2ND
28     PARAMETER(ENUM_CENTERED_2ND=2)
29 jmc 1.2
30 jmc 1.13 C ENUM_UPWIND_3RD :: 3rd order upwind
31 jmc 1.2 INTEGER ENUM_UPWIND_3RD
32     PARAMETER(ENUM_UPWIND_3RD=3)
33 adcroft 1.1
34 adcroft 1.7 C ENUM_CENTERED_4TH :: Centered 4th order
35 adcroft 1.1 INTEGER ENUM_CENTERED_4TH
36     PARAMETER(ENUM_CENTERED_4TH=4)
37    
38 jmc 1.13 C ENUM_DST2 :: 2nd Order Direct Space and Time (= Lax-Wendroff)
39     INTEGER ENUM_DST2
40     PARAMETER(ENUM_DST2=20)
41    
42 adcroft 1.7 C ENUM_FLUX_LIMIT :: Non-linear flux limiter
43 adcroft 1.1 INTEGER ENUM_FLUX_LIMIT
44     PARAMETER(ENUM_FLUX_LIMIT=77)
45 adcroft 1.6
46 jmc 1.13 C ENUM_DST3 :: 3rd Order Direst Space and Time
47 adcroft 1.6 INTEGER ENUM_DST3
48     PARAMETER(ENUM_DST3=30)
49    
50 adcroft 1.7 C ENUM_DST3_FLUX_LIMIT :: 3-DST flux limited
51 adcroft 1.6 INTEGER ENUM_DST3_FLUX_LIMIT
52     PARAMETER(ENUM_DST3_FLUX_LIMIT=33)
53 adcroft 1.1
54 adcroft 1.16 C ENUM_OS7MP :: 7th Order One Step method with Monotonicity Preserving Limiter
55     INTEGER ENUM_OS7MP
56     PARAMETER(ENUM_OS7MP=7)
57    
58 jmc 1.15 C ENUM_SOM_PRATHER :: 2nd Order-Moment Advection Scheme, Prather, 1986
59     INTEGER ENUM_SOM_PRATHER
60     PARAMETER(ENUM_SOM_PRATHER=80)
61    
62     C ENUM_SOM_LIMITER :: 2nd Order-Moment Advection Scheme, Prather Limiter
63     INTEGER ENUM_SOM_LIMITER
64     PARAMETER(ENUM_SOM_LIMITER=81)
65    
66     C nSOM :: number of 1rst & 2nd Order-Moments: 1+1 (1D), 2+3 (2D), 3+6 (3D)
67     INTEGER nSOM
68     PARAMETER( nSOM = 3+6 )
69    
70 adcroft 1.7 C oneSixth :: Third/fourth order interpolation factor
71 adcroft 1.1 _RL oneSixth
72 heimbach 1.4 PARAMETER(oneSixth=1.D0/6.D0)
73 adcroft 1.1
74 edhill 1.11 C Differentiate between tracers (needed for KPP - arrgh!!!)
75     cph and GMRedi arrgh*arrgh!!!)
76 heimbach 1.10 cph indices are used for TAF key computations, so need to
77     cph running from 1, 2, ...
78     c
79 adcroft 1.7 C GAD_TEMPERATURE :: temperature
80 adcroft 1.1 INTEGER GAD_TEMPERATURE
81 heimbach 1.10 PARAMETER(GAD_TEMPERATURE=1)
82 jmc 1.9 C GAD_SALINITY :: salinity
83 adcroft 1.1 INTEGER GAD_SALINITY
84 heimbach 1.10 PARAMETER(GAD_SALINITY=2)
85 dimitri 1.12 C GAD_TR1 :: passive tracer 1
86 heimbach 1.3 INTEGER GAD_TR1
87 heimbach 1.10 PARAMETER(GAD_TR1=3)
88 adcroft 1.7 CEOP
89 jmc 1.9
90     C-- COMMON /GAD_PARM_L/ Logical parameters for GAD pkg routines
91 jmc 1.15 C tempSOM_Advection :: set to T if using 2nd-Order Moment advection for Temp
92     C saltSOM_Advection :: set to T if using 2nd-Order Moment advection for Salt
93 edhill 1.11 C tempMultiDimAdvec :: set to T if using multi-dim advection for Temp
94     C saltMultiDimAdvec :: set to T if using multi-dim advection for Salt
95 jmc 1.14 C AdamsBashforthGt :: apply Adams-Bashforth extrapolation on T tendency (=Gt)
96     C AdamsBashforthGs :: apply Adams-Bashforth extrapolation on S tendency (=Gs)
97     C AdamsBashforth_T :: apply Adams-Bashforth extrapolation on Pot.Temp.
98     C AdamsBashforth_S :: apply Adams-Bashforth extrapolation on Salinity
99     C tempStartAB :: start this run (or restart) without previous gT/Temp
100     C saltStartAB :: start this run (or restart) without previous gS/Salt
101 jmc 1.15 LOGICAL tempSOM_Advection
102     LOGICAL saltSOM_Advection
103 jmc 1.9 LOGICAL tempMultiDimAdvec
104     LOGICAL saltMultiDimAdvec
105 jmc 1.14 LOGICAL AdamsBashforthGt
106     LOGICAL AdamsBashforthGs
107     LOGICAL AdamsBashforth_T
108     LOGICAL AdamsBashforth_S
109     LOGICAL tempStartAB
110     LOGICAL saltStartAB
111 jmc 1.9 COMMON /GAD_PARM_L/
112 jmc 1.15 & tempSOM_Advection, saltSOM_Advection,
113 jmc 1.14 & tempMultiDimAdvec, saltMultiDimAdvec,
114     & AdamsBashforthGt, AdamsBashforthGs,
115     & AdamsBashforth_T, AdamsBashforth_S,
116     & tempStartAB, saltStartAB
117 edhill 1.11
118     CEH3 ;;; Local Variables: ***
119     CEH3 ;;; mode:fortran ***
120     CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22