/[MITgcm]/MITgcm/model/src/calc_gtr1.F
ViewVC logotype

Contents of /MITgcm/model/src/calc_gtr1.F

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


Revision 1.10 - (show annotations) (download)
Thu Oct 9 04:19:18 2003 UTC (20 years, 8 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52e_pre, checkpoint51n_pre, checkpoint52d_pre, branch-netcdf, checkpoint51r_post, checkpoint52b_pre, checkpoint51o_pre, checkpoint51i_post, checkpoint51l_pre, checkpoint51l_post, checkpoint51o_post, checkpoint51q_post, checkpoint52, checkpoint52d_post, checkpoint52a_post, checkpoint52b_post, checkpoint52c_post, ecco_c52_e35, checkpoint52a_pre, checkpoint51m_post, checkpoint51t_post, checkpoint51p_post, checkpoint51n_post, checkpoint51u_post, checkpoint51s_post
Branch point for: netcdf-sm0, branch-nonh, tg2-branch, checkpoint51n_branch
Changes since 1.9: +4 -1 lines
 o first check-in for the "branch-genmake2" merge
 o verification suite as run on shelley (gcc 3.2.2):

Wed Oct  8 23:42:29 EDT 2003
                T           S           U           V
G D M    c        m  s        m  s        m  s        m  s
E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .
N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d
2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .

OPTFILE=NONE

Y Y Y Y 13 16 16 16  0 16 16 16 16 16 16 16 16 13 12  0  0 pass  adjustment.128x64x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16  0  0 16 16  0  0 pass  adjustment.cs-32x32x1
Y Y Y Y 16 16 16 16  0 16 16 16 16 16 16 22  0 16 16 22  0 pass  adjust_nlfs.cs-32x32x1
Y Y Y Y -- 13 13 16 16 13 13 13 13 16 16 16 16 16 16 16 16 N/O   advect_cs
Y Y Y Y -- 22 16 16 16 16 16 16 13 16 16 16 16 16 16 16 16 N/O   advect_xy
Y Y Y Y -- 13 16 13 16 16 16 16 16 16 16 22 16 16 16 16 16 N/O   advect_xz
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  aim.5l_cs
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 16 pass  aim.5l_Equatorial_Channel
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 13 16 16 13 13 16 pass  aim.5l_LatLon
Y Y Y Y 13 16 16 16 16 16 16 16 16 16 13 12 13 13 16 13 16 pass  exp0
Y Y Y Y 14 16 16 16 16 16 16 16 22 16 16 16 13 16 16 22 16 pass  exp1
Y Y Y Y 13 13 16 13 16 16 16 16 16 13 13 16 16 13 13 13 13 pass  exp2
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  exp4
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass  exp5
Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass  front_relax
Y Y Y Y 14 16 16 13 13 16 16 13 13 16 13 13 16 12 13 13 16 pass  global_ocean.90x40x15
Y Y Y Y 10 16 16 13 13 16 13 16 16 13 13 13 13 16 16 13 16 FAIL  global_ocean.cs32x15
Y Y Y Y  6 11 12 13 13 12 13 16 13  9  9  9  9 10  9  9 11 FAIL  global_ocean_pressure
Y Y Y Y 14 16 16 13 16 16 16 13 13 13 13 13 16 12 16 13 16 pass  global_with_exf
Y Y Y Y 14 16 16 16 16 16 16 16 16 11 13 22 13 16 16  9 16 pass  hs94.128x64x5
Y Y Y Y 13 16 16 16 16 16 16 16 16 11 16 16 16 13 16 22 13 pass  hs94.1x64x5
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 13 13 16 16 22 13 pass  hs94.cs-32x32x5
Y Y Y Y 10 10 16 13 13 16 16 16 22 16 13 13 13 13 13 22 13 FAIL  ideal_2D_oce
Y Y Y Y  8 16 16 16 16 16 16 16 16 13 13  8 16 16 16 16 16 FAIL  internal_wave
Y Y Y Y 14 16 16 16 16 16 16 16 16 13 13 22 13 13 13 22 16 pass  inverted_barometer
Y Y Y Y 12 16 16 16 16 16 16 16 16 16 13 12 13 13 13 13 13 FAIL  lab_sea
Y Y Y Y 11 16 16 16 16 16 16 16 13 13 13 12 13 16 13 12 13 FAIL  natl_box
Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass  plume_on_slope
Y Y Y Y 13 16 16 16 16 13 16 16 16 16 16 16 16 13 16 16 16 pass  solid-body.cs-32x32x1

1 C $Header: /u/u3/gcmpack/MITgcm/model/src/calc_gtr1.F,v 1.9.4.1 2003/10/02 18:10:45 edhill Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: CALC_GTR1
9 C !INTERFACE:
10 SUBROUTINE CALC_GTR1(
11 I bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown,
12 I xA,yA,uTrans,vTrans,rTrans,maskUp,
13 I KappaRT,
14 U fVerT,
15 I myTime,myIter,myThid )
16 C !DESCRIPTION: \bv
17 C *==========================================================*
18 C | SUBROUTINE CALC_GTR1
19 C | o Calculate the passive tracer tendency terms.
20 C *==========================================================*
21
22 C !USES:
23 IMPLICIT NONE
24 C == GLobal variables ==
25 #include "SIZE.h"
26 #include "DYNVARS.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29 #include "GAD.h"
30 #ifdef ALLOW_PASSIVE_TRACER
31 #include "TR1.h"
32 #endif
33
34 C !INPUT/OUTPUT PARAMETERS:
35 C == Routine arguments ==
36 C fVerT :: Flux of temperature (T) in the vertical
37 C direction at the upper(U) and lower(D) faces of a cell.
38 C maskUp :: Land mask used to denote base of the domain.
39 C xA :: Tracer cell face area normal to X
40 C yA :: Tracer cell face area normal to X
41 C uTrans :: Zonal volume transport through cell face
42 C vTrans :: Meridional volume transport through cell face
43 C rTrans :: Vertical volume transport through cell face
44 C bi, bj, iMin, iMax, jMin, jMax :: Range of points for which calculation
45 C results will be set.
46 C myThid - Instance number for this innvocation of CALC_GT
47 _RL fVerT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,2)
48 _RS xA (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
49 _RS yA (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
50 _RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
51 _RL vTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
52 _RL rTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
53 _RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
54 _RL KappaRT(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
55 INTEGER k,kUp,kDown,kM1
56 INTEGER bi,bj,iMin,iMax,jMin,jMax
57 _RL myTime
58 INTEGER myIter
59 INTEGER myThid
60
61 CEOP
62
63 ceh3 needs an IF ( usePASSIVE_TRACER ) THEN
64
65 #ifdef ALLOW_PASSIVE_TRACER
66 C === Local variables ===
67 LOGICAL calcAdvection
68
69 #ifdef ALLOW_AUTODIFF_TAMC
70 C-- only the kUp part of fverT is set in this subroutine
71 C-- the kDown is still required
72 fVerT(1,1,kDown) = fVerT(1,1,kDown)
73 #endif
74
75 calcAdvection = .NOT.tr1_MultiDimAdvec
76 CALL GAD_CALC_RHS(
77 I bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown,
78 I xA,yA,uTrans,vTrans,rTrans,maskUp,
79 I diffKhT, diffK4T, KappaRT, tr1,
80 I GAD_TR1, tracerAdvScheme, calcAdvection,
81 U fVerT, gTr1,
82 I myThid )
83
84 #ifdef INCLUDE_TR_FORCING_CODE
85 C-- External forcing term(s) inside Adams-Bashforth:
86 IF ( forcing_In_AB )
87 & CALL EXTERNAL_FORCING_TR(
88 I iMin,iMax,jMin,jMax,bi,bj,k,
89 I myTime,myThid)
90 #endif /* INCLUDE_TR_FORCING_CODE */
91
92 IF ( tr1_AdamsBashforth ) THEN
93 CALL ADAMS_BASHFORTH2(
94 I bi, bj, K,
95 U gTr1, gTr1nm1,
96 I myIter, myThid )
97 ENDIF
98
99 #ifdef INCLUDE_TR_FORCING_CODE
100 C-- External forcing term(s) outside Adams-Bashforth:
101 IF ( .NOT.forcing_In_AB )
102 & CALL EXTERNAL_FORCING_TR(
103 I iMin,iMax,jMin,jMax,bi,bj,k,
104 I myTime,myThid)
105 #endif /* INCLUDE_TR_FORCING_CODE */
106
107 #ifdef NONLIN_FRSURF
108 IF (nonlinFreeSurf.GT.0) THEN
109 CALL FREESURF_RESCALE_G(
110 I bi, bj, K,
111 U gTr1,
112 I myThid )
113 IF ( tr1_AdamsBashforth )
114 & CALL FREESURF_RESCALE_G(
115 I bi, bj, K,
116 U gTr1nm1,
117 I myThid )
118 ENDIF
119 #endif /* NONLIN_FRSURF */
120
121 #endif /* ALLOW_PASSIVE_TRACER */
122
123 RETURN
124 END

  ViewVC Help
Powered by ViewVC 1.1.22