3 |
|
|
4 |
#include "GAD_OPTIONS.h" |
#include "GAD_OPTIONS.h" |
5 |
|
|
6 |
SUBROUTINE GAD_DST3FL_ADV_X( |
SUBROUTINE GAD_DST3FL_ADV_X( |
7 |
I bi,bj,k,deltaTloc, |
I bi,bj,k,deltaTloc, |
8 |
I uTrans, uVel, |
I uTrans, uFld, |
9 |
I maskLocW, tracer, |
I maskLocW, tracer, |
10 |
O uT, |
O uT, |
11 |
I myThid ) |
I myThid ) |
25 |
INTEGER bi,bj,k |
INTEGER bi,bj,k |
26 |
_RL deltaTloc |
_RL deltaTloc |
27 |
_RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
28 |
_RL uVel(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
_RL uFld (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
29 |
_RS maskLocW(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RS maskLocW(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
30 |
_RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
31 |
_RL uT (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL uT (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
32 |
INTEGER myThid |
INTEGER myThid |
33 |
|
|
34 |
C == Local variables == |
C == Local variables == |
35 |
C uFld :: velocity [m/s], zonal component |
C uLoc :: velocity [m/s], zonal component |
36 |
INTEGER i,j |
INTEGER i,j |
37 |
_RL Rjm,Rj,Rjp,cfl,d0,d1,psiP,psiM,thetaP,thetaM |
_RL Rjm,Rj,Rjp,cfl,d0,d1,psiP,psiM,thetaP,thetaM |
38 |
_RL uFld |
_RL uLoc |
39 |
_RL thetaMax |
_RL thetaMax |
40 |
PARAMETER( thetaMax = 1.D+20 ) |
PARAMETER( thetaMax = 1.D+20 ) |
41 |
|
|
52 |
Rj =(tracer( i ,j)-tracer(i-1,j))*maskLocW( i ,j) |
Rj =(tracer( i ,j)-tracer(i-1,j))*maskLocW( i ,j) |
53 |
Rjm=(tracer(i-1,j)-tracer(i-2,j))*maskLocW(i-1,j) |
Rjm=(tracer(i-1,j)-tracer(i-2,j))*maskLocW(i-1,j) |
54 |
|
|
55 |
c uFld = uVel(i,j,k,bi,bj) |
uLoc = uFld(i,j) |
56 |
uFld = uTrans(i,j)*recip_dyG(i,j,bi,bj) |
c uLoc = uTrans(i,j)*recip_dyG(i,j,bi,bj) |
57 |
& *recip_drF(k)*_recip_hFacW(i,j,k,bi,bj) |
c & *recip_drF(k)*_recip_hFacW(i,j,k,bi,bj) |
58 |
cfl=abs(uFld*deltaTloc*recip_dxC(i,j,bi,bj)) |
cfl=abs(uLoc*deltaTloc*recip_dxC(i,j,bi,bj)) |
59 |
d0=(2. _d 0 -cfl)*(1. _d 0 -cfl)*oneSixth |
d0=(2. _d 0 -cfl)*(1. _d 0 -cfl)*oneSixth |
60 |
d1=(1. _d 0 -cfl*cfl)*oneSixth |
d1=(1. _d 0 -cfl*cfl)*oneSixth |
61 |
|
|