31 |
INTEGER myThid |
INTEGER myThid |
32 |
|
|
33 |
C == Local variables == |
C == Local variables == |
34 |
|
C uFld :: velocity [m/s], zonal component |
35 |
INTEGER i,j |
INTEGER i,j |
36 |
_RL Rjm,Rj,Rjp,cfl,d0,d1 |
_RL Rjm,Rj,Rjp,cfl,d0,d1 |
37 |
_RL psiP,psiM,thetaP,thetaM |
_RL psiP,psiM,thetaP,thetaM |
38 |
|
_RL uFld |
39 |
|
|
40 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
41 |
uT(1-Olx,j)=0. |
uT(1-Olx,j)=0. |
46 |
Rj =(tracer(i,j)-tracer(i-1,j))*maskW(i,j,k,bi,bj) |
Rj =(tracer(i,j)-tracer(i-1,j))*maskW(i,j,k,bi,bj) |
47 |
Rjm=(tracer(i-1,j)-tracer(i-2,j))*maskW(i-1,j,k,bi,bj) |
Rjm=(tracer(i-1,j)-tracer(i-2,j))*maskW(i-1,j,k,bi,bj) |
48 |
|
|
49 |
cfl=abs(uVel(i,j,k,bi,bj)*deltaT*recip_dxc(i,j,bi,bj)) |
c uFld = uVel(i,j,k,bi,bj) |
50 |
|
uFld = uTrans(i,j)*recip_dyG(i,j,bi,bj) |
51 |
|
& *recip_drF(k)*recip_hFacW(i,j,k,bi,bj) |
52 |
|
cfl=abs(uFld*deltaT*recip_dxC(i,j,bi,bj)) |
53 |
d0=(2.-cfl)*(1.-cfl)*oneSixth |
d0=(2.-cfl)*(1.-cfl)*oneSixth |
54 |
d1=(1.-cfl*cfl)*oneSixth |
d1=(1.-cfl*cfl)*oneSixth |
55 |
c thetaP=0. |
c thetaP=0. |