48 |
mask_Km1=1. |
mask_Km1=1. |
49 |
IF (K.EQ.1) mask_Km1=0. |
IF (K.EQ.1) mask_Km1=0. |
50 |
|
|
51 |
DO J=1-Oly,sNy+Oly |
DO J=2-Oly,sNy+Oly |
52 |
DO I=2-Olx,sNx+Olx |
DO I=1-Olx,sNx+Olx |
53 |
|
|
54 |
vmask_K=_maskS(i,j,k,bi,bj) |
c vmask_K=_maskS(i,j,k,bi,bj) |
55 |
|
|
56 |
C barZ( barY( W ) ) |
C barZ( barY( W ) ) |
57 |
c wBarYm=0.5*(wFld(I,J,K,bi,bj)+wFld(I,J-1,K,bi,bj)) |
c wBarYm=0.5*(wFld(I,J,K,bi,bj)+wFld(I,J-1,K,bi,bj)) |
67 |
& +wFld(I,J-1,Kp1,bi,bj)*rA(i,j-1,bi,bj))*mask_Kp1 |
& +wFld(I,J-1,Kp1,bi,bj)*rA(i,j-1,bi,bj))*mask_Kp1 |
68 |
|
|
69 |
C delta_Z( V ) @ interface k |
C delta_Z( V ) @ interface k |
70 |
vmask_Km1=mask_Km1*vmask_K |
vmask_Km1=mask_Km1*maskS(i,j,Km1,bi,bj) |
71 |
vZm=(mask_Km1*vFld(I,J,Km1,bi,bj)-vFld(I,J,K,bi,bj)) |
vZm=(mask_Km1*vFld(I,J,Km1,bi,bj)-vFld(I,J,K,bi,bj)) |
72 |
c2 & *recip_dRC(K) |
c2 & *recip_dRC(K) |
73 |
IF (freeslip1) vZm=vZm*vmask_Km1 |
IF (freeslip1) vZm=vZm*vmask_Km1 |
74 |
IF (noslip1.AND.vmask_Km1.EQ.0.) vZm=vZm*2. |
IF (noslip1.AND.vmask_Km1.EQ.0.) vZm=vZm*2. |
75 |
|
|
76 |
C delta_Z( V ) @ interface k+1 |
C delta_Z( V ) @ interface k+1 |
77 |
vmask_Kp1=mask_Kp1*vmask_K |
vmask_Kp1=mask_Kp1*maskS(i,j,Kp1,bi,bj) |
78 |
vZp=(vFld(I,J,K,bi,bj)-mask_Kp1*vFld(I,J,Kp1,bi,bj)) |
vZp=(vFld(I,J,K,bi,bj)-mask_Kp1*vFld(I,J,Kp1,bi,bj)) |
79 |
c2 & *recip_dRC(Kp1) |
c2 & *recip_dRC(Kp1) |
80 |
IF (freeslipK) vZp=vZp*vmask_Kp1 |
IF (freeslipK) vZp=vZp*vmask_Kp1 |