/[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.14 - (hide annotations) (download)
Sun Nov 6 22:14:02 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint57y_post, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58t_post, checkpoint58m_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint58k_post, checkpoint58l_post, checkpoint58g_post, checkpoint58h_post, checkpoint58j_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post
Changes since 1.13: +17 -7 lines
File MIME type: text/plain
Allow to apply AB on T,S rather than on AB(gT,gS):
 - implemented within #ifdef ALLOW_ADAMSBASHFORTH_3
 - use the same arrays (gtNm,gsNm) to hold tracer field at previous
   time-steps (if AB(T,S)) and tendencies (if AB(gT,gS)).

1 jmc 1.14 C $Header: /u/gcmpack/MITgcm/pkg/generic_advdiff/GAD.h,v 1.13 2005/10/22 19:56:33 jmc 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     #include "GAD_OPTIONS.h"
20 adcroft 1.7
21     C !DEFINED PARAMETERS:
22    
23 jmc 1.13 C ENUM_UPWIND_1RST :: 1rst Order Upwind
24     INTEGER ENUM_UPWIND_1RST
25     PARAMETER(ENUM_UPWIND_1RST=1)
26    
27 adcroft 1.7 C ENUM_CENTERED_2ND :: Centered 2nd order
28 adcroft 1.1 INTEGER ENUM_CENTERED_2ND
29     PARAMETER(ENUM_CENTERED_2ND=2)
30 jmc 1.2
31 jmc 1.13 C ENUM_UPWIND_3RD :: 3rd order upwind
32 jmc 1.2 INTEGER ENUM_UPWIND_3RD
33     PARAMETER(ENUM_UPWIND_3RD=3)
34 adcroft 1.1
35 adcroft 1.7 C ENUM_CENTERED_4TH :: Centered 4th order
36 adcroft 1.1 INTEGER ENUM_CENTERED_4TH
37     PARAMETER(ENUM_CENTERED_4TH=4)
38    
39 jmc 1.13 C ENUM_DST2 :: 2nd Order Direct Space and Time (= Lax-Wendroff)
40     INTEGER ENUM_DST2
41     PARAMETER(ENUM_DST2=20)
42    
43 adcroft 1.7 C ENUM_FLUX_LIMIT :: Non-linear flux limiter
44 adcroft 1.1 INTEGER ENUM_FLUX_LIMIT
45     PARAMETER(ENUM_FLUX_LIMIT=77)
46 adcroft 1.6
47 jmc 1.13 C ENUM_DST3 :: 3rd Order Direst Space and Time
48 adcroft 1.6 INTEGER ENUM_DST3
49     PARAMETER(ENUM_DST3=30)
50    
51 adcroft 1.7 C ENUM_DST3_FLUX_LIMIT :: 3-DST flux limited
52 adcroft 1.6 INTEGER ENUM_DST3_FLUX_LIMIT
53     PARAMETER(ENUM_DST3_FLUX_LIMIT=33)
54 adcroft 1.1
55 adcroft 1.7 C oneSixth :: Third/fourth order interpolation factor
56 adcroft 1.1 _RL oneSixth
57 heimbach 1.4 PARAMETER(oneSixth=1.D0/6.D0)
58 adcroft 1.1
59 edhill 1.11 C Differentiate between tracers (needed for KPP - arrgh!!!)
60     cph and GMRedi arrgh*arrgh!!!)
61 heimbach 1.10 cph indices are used for TAF key computations, so need to
62     cph running from 1, 2, ...
63     c
64 adcroft 1.7 C GAD_TEMPERATURE :: temperature
65 adcroft 1.1 INTEGER GAD_TEMPERATURE
66 heimbach 1.10 PARAMETER(GAD_TEMPERATURE=1)
67 jmc 1.9 C GAD_SALINITY :: salinity
68 adcroft 1.1 INTEGER GAD_SALINITY
69 heimbach 1.10 PARAMETER(GAD_SALINITY=2)
70 dimitri 1.12 C GAD_TR1 :: passive tracer 1
71 heimbach 1.3 INTEGER GAD_TR1
72 heimbach 1.10 PARAMETER(GAD_TR1=3)
73 adcroft 1.7 CEOP
74 jmc 1.9
75     C-- COMMON /GAD_PARM_L/ Logical parameters for GAD pkg routines
76 edhill 1.11 C tempMultiDimAdvec :: set to T if using multi-dim advection for Temp
77     C saltMultiDimAdvec :: set to T if using multi-dim advection for Salt
78 jmc 1.14 C AdamsBashforthGt :: apply Adams-Bashforth extrapolation on T tendency (=Gt)
79     C AdamsBashforthGs :: apply Adams-Bashforth extrapolation on S tendency (=Gs)
80     C AdamsBashforth_T :: apply Adams-Bashforth extrapolation on Pot.Temp.
81     C AdamsBashforth_S :: apply Adams-Bashforth extrapolation on Salinity
82     C tempStartAB :: start this run (or restart) without previous gT/Temp
83     C saltStartAB :: start this run (or restart) without previous gS/Salt
84 jmc 1.9 LOGICAL tempMultiDimAdvec
85     LOGICAL saltMultiDimAdvec
86 jmc 1.14 LOGICAL AdamsBashforthGt
87     LOGICAL AdamsBashforthGs
88     LOGICAL AdamsBashforth_T
89     LOGICAL AdamsBashforth_S
90     LOGICAL tempStartAB
91     LOGICAL saltStartAB
92 jmc 1.9 COMMON /GAD_PARM_L/
93 jmc 1.14 & tempMultiDimAdvec, saltMultiDimAdvec,
94     & AdamsBashforthGt, AdamsBashforthGs,
95     & AdamsBashforth_T, AdamsBashforth_S,
96     & tempStartAB, saltStartAB
97 edhill 1.11
98     CEH3 ;;; Local Variables: ***
99     CEH3 ;;; mode:fortran ***
100     CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22