64 |
& *maskC(i,j,km1,bi,bj) |
& *maskC(i,j,km1,bi,bj) |
65 |
|
|
66 |
cfl=abs(wVel(i,j,k,bi,bj)*dTarg*recip_drc(k)) |
cfl=abs(wVel(i,j,k,bi,bj)*dTarg*recip_drc(k)) |
67 |
d0=(2.-cfl)*(1.-cfl)*oneSixth |
d0=(2.D0-cfl)*(1.-cfl)*oneSixth |
68 |
d1=(1.-cfl*cfl)*oneSixth |
d1=(1.D0-cfl*cfl)*oneSixth |
69 |
c thetaP=0. |
c thetaP=0.D0 |
70 |
c IF (Rj.NE.0.) thetaP=Rjm/Rj |
c IF (Rj.NE.0.D0) thetaP=Rjm/Rj |
71 |
thetaP=Rjm/(1.D-20+Rj) |
thetaP=Rjm/(1.D-20+Rj) |
72 |
psiP=d0+d1*thetaP |
psiP=d0+d1*thetaP |
73 |
psiP=max(0.,min(min(1.,psiP),(1.-cfl)/(1.D-20+cfl)*thetaP)) |
psiP=max(0.D0,min(min(1.D0,psiP), |
74 |
|
& (1.D0-cfl)/(1.D-20+cfl)*thetaP)) |
75 |
thetaM=Rjp/(1.D-20+Rj) |
thetaM=Rjp/(1.D-20+Rj) |
76 |
c thetaM=0. |
c thetaM=0.D0 |
77 |
c IF (Rj.NE.0.) thetaM=Rjp/Rj |
c IF (Rj.NE.0.D0) thetaM=Rjp/Rj |
78 |
psiM=d0+d1*thetaM |
psiM=d0+d1*thetaM |
79 |
psiM=max(0.,min(min(1.,psiM),(1.-cfl)/(1.D-20+cfl)*thetaM)) |
psiM=max(0.D0,min(min(1.D0,psiM), |
80 |
|
& (1.D0-cfl)/(1.D-20+cfl)*thetaM)) |
81 |
wT(i,j)= |
wT(i,j)= |
82 |
& 0.5*(rTrans(i,j)+abs(rTrans(i,j))) |
& 0.5*(rTrans(i,j)+abs(rTrans(i,j))) |
83 |
& *( Tracer(i,j, k ,bi,bj) + psiM*Rj ) |
& *( Tracer(i,j, k ,bi,bj) + psiM*Rj ) |