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,psiP,psiM,thetaP,thetaM |
_RL Rjm,Rj,Rjp,cfl,d0,d1,psiP,psiM,thetaP,thetaM |
37 |
|
_RL uFld |
38 |
|
|
39 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
40 |
uT(1-Olx,j)=0.D0 |
uT(1-Olx,j)=0.D0 |
45 |
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) |
46 |
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) |
47 |
|
|
48 |
cfl=abs(uVel(i,j,k,bi,bj)*deltaT*recip_dxc(i,j,bi,bj)) |
c uFld = uVel(i,j,k,bi,bj) |
49 |
|
uFld = uTrans(i,j)*recip_dyG(i,j,bi,bj) |
50 |
|
& *recip_drF(k)*recip_hFacW(i,j,k,bi,bj) |
51 |
|
cfl=abs(uFld*deltaT*recip_dxC(i,j,bi,bj)) |
52 |
d0=(2.D0-cfl)*(1.D0-cfl)*oneSixth |
d0=(2.D0-cfl)*(1.D0-cfl)*oneSixth |
53 |
d1=(1.D0-cfl*cfl)*oneSixth |
d1=(1.D0-cfl*cfl)*oneSixth |
54 |
c thetaP=0.D0 |
c thetaP=0.D0 |