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

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

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


Revision 1.10 - (hide 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 edhill 1.10 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 adcroft 1.4 C $Name: $
3 heimbach 1.1
4 edhill 1.10 #include "PACKAGES_CONFIG.h"
5 heimbach 1.1 #include "CPP_OPTIONS.h"
6    
7 cnh 1.6 CBOP
8     C !ROUTINE: CALC_GTR1
9     C !INTERFACE:
10 heimbach 1.1 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 adcroft 1.4 I myTime,myIter,myThid )
16 cnh 1.6 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 heimbach 1.1 IMPLICIT NONE
24     C == GLobal variables ==
25     #include "SIZE.h"
26     #include "DYNVARS.h"
27     #include "EEPARAMS.h"
28     #include "PARAMS.h"
29 adcroft 1.3 #include "GAD.h"
30 jmc 1.9 #ifdef ALLOW_PASSIVE_TRACER
31 heimbach 1.1 #include "TR1.h"
32 jmc 1.9 #endif
33 heimbach 1.1
34 cnh 1.6 C !INPUT/OUTPUT PARAMETERS:
35 heimbach 1.1 C == Routine arguments ==
36 cnh 1.6 C fVerT :: Flux of temperature (T) in the vertical
37 heimbach 1.1 C direction at the upper(U) and lower(D) faces of a cell.
38 cnh 1.6 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 heimbach 1.1 C results will be set.
46 adcroft 1.3 C myThid - Instance number for this innvocation of CALC_GT
47 heimbach 1.1 _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 adcroft 1.4 _RL myTime
58     INTEGER myIter
59 heimbach 1.1 INTEGER myThid
60    
61 cnh 1.6 CEOP
62 edhill 1.10
63     ceh3 needs an IF ( usePASSIVE_TRACER ) THEN
64 heimbach 1.1
65 jmc 1.7 #ifdef ALLOW_PASSIVE_TRACER
66     C === Local variables ===
67     LOGICAL calcAdvection
68    
69 heimbach 1.1 #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 jmc 1.7 calcAdvection = .NOT.tr1_MultiDimAdvec
76 adcroft 1.3 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 jmc 1.7 I GAD_TR1, tracerAdvScheme, calcAdvection,
81 adcroft 1.3 U fVerT, gTr1,
82     I myThid )
83 heimbach 1.1
84 adcroft 1.3 #ifdef INCLUDE_TR_FORCING_CODE
85 jmc 1.7 C-- External forcing term(s) inside Adams-Bashforth:
86     IF ( forcing_In_AB )
87     & CALL EXTERNAL_FORCING_TR(
88 heimbach 1.1 I iMin,iMax,jMin,jMax,bi,bj,k,
89 adcroft 1.4 I myTime,myThid)
90 adcroft 1.3 #endif /* INCLUDE_TR_FORCING_CODE */
91 adcroft 1.4
92 jmc 1.7 IF ( tr1_AdamsBashforth ) THEN
93 adcroft 1.4 CALL ADAMS_BASHFORTH2(
94     I bi, bj, K,
95 adcroft 1.5 U gTr1, gTr1nm1,
96 adcroft 1.4 I myIter, myThid )
97     ENDIF
98    
99 jmc 1.7 #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 adcroft 1.4 #ifdef NONLIN_FRSURF
108     IF (nonlinFreeSurf.GT.0) THEN
109     CALL FREESURF_RESCALE_G(
110     I bi, bj, K,
111     U gTr1,
112 jmc 1.8 I myThid )
113     IF ( tr1_AdamsBashforth )
114     & CALL FREESURF_RESCALE_G(
115     I bi, bj, K,
116     U gTr1nm1,
117 adcroft 1.4 I myThid )
118     ENDIF
119     #endif /* NONLIN_FRSURF */
120 jmc 1.7
121     #endif /* ALLOW_PASSIVE_TRACER */
122 heimbach 1.1
123     RETURN
124     END

  ViewVC Help
Powered by ViewVC 1.1.22