1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE CALC_GTR1( |
7 |
I bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown, |
8 |
I xA,yA,uTrans,vTrans,rTrans,maskUp, |
9 |
I KappaRT, |
10 |
U fVerT, |
11 |
I myCurrentTime, myThid ) |
12 |
C /==========================================================\ |
13 |
C | SUBROUTINE CALC_GTR1 | |
14 |
C | o Calculate the passive tracer tendency terms. | |
15 |
C |==========================================================| |
16 |
C \==========================================================/ |
17 |
IMPLICIT NONE |
18 |
|
19 |
C == GLobal variables == |
20 |
#include "SIZE.h" |
21 |
#include "DYNVARS.h" |
22 |
#include "EEPARAMS.h" |
23 |
#include "PARAMS.h" |
24 |
#include "GAD.h" |
25 |
#include "TR1.h" |
26 |
|
27 |
C == Routine arguments == |
28 |
C fVerT - Flux of temperature (T) in the vertical |
29 |
C direction at the upper(U) and lower(D) faces of a cell. |
30 |
C maskUp - Land mask used to denote base of the domain. |
31 |
C xA - Tracer cell face area normal to X |
32 |
C yA - Tracer cell face area normal to X |
33 |
C uTrans - Zonal volume transport through cell face |
34 |
C vTrans - Meridional volume transport through cell face |
35 |
C rTrans - Vertical volume transport through cell face |
36 |
C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation |
37 |
C results will be set. |
38 |
C myThid - Instance number for this innvocation of CALC_GT |
39 |
_RL fVerT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,2) |
40 |
_RS xA (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
41 |
_RS yA (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
42 |
_RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
43 |
_RL vTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
44 |
_RL rTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
45 |
_RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
46 |
_RL KappaRT(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
47 |
INTEGER k,kUp,kDown,kM1 |
48 |
INTEGER bi,bj,iMin,iMax,jMin,jMax |
49 |
INTEGER myThid |
50 |
_RL myCurrentTime |
51 |
|
52 |
C == Local variables == |
53 |
|
54 |
#ifdef ALLOW_AUTODIFF_TAMC |
55 |
C-- only the kUp part of fverT is set in this subroutine |
56 |
C-- the kDown is still required |
57 |
fVerT(1,1,kDown) = fVerT(1,1,kDown) |
58 |
#endif |
59 |
|
60 |
CALL GAD_CALC_RHS( |
61 |
I bi,bj,iMin,iMax,jMin,jMax,k,kM1,kUp,kDown, |
62 |
I xA,yA,uTrans,vTrans,rTrans,maskUp, |
63 |
I diffKhT, diffK4T, KappaRT, tr1, |
64 |
I GAD_TR1, tracerAdvScheme, |
65 |
U fVerT, gTr1, |
66 |
I myThid ) |
67 |
|
68 |
#ifdef INCLUDE_TR_FORCING_CODE |
69 |
C-- External thermal forcing term(s) |
70 |
CALL EXTERNAL_FORCING_TR( |
71 |
I iMin,iMax,jMin,jMax,bi,bj,k, |
72 |
I myCurrentTime,myThid) |
73 |
#endif /* INCLUDE_TR_FORCING_CODE */ |
74 |
|
75 |
RETURN |
76 |
END |