128 |
DO I=iMin,iMax |
DO I=iMin,iMax |
129 |
C First compute the fraction of open water for the w-control volume |
C First compute the fraction of open water for the w-control volume |
130 |
C at the southern face |
C at the southern face |
131 |
hFacStmp=max(hFacS(I,J,K-1,bi,bj)-Half,0) |
hFacStmp=max(hFacS(I,J,K-1,bi,bj)-Half,0. _d 0) |
132 |
& + min(hFacS(I,J,K ,bi,bj),Half) |
& + min(hFacS(I,J,K ,bi,bj),Half) |
133 |
tmp_VbarZ=Half*( |
tmp_VbarZ=Half*( |
134 |
& _hFacS(I,J,K-1,bi,bj)*vVel( I ,J,K-1,bi,bj) |
& _hFacS(I,J,K-1,bi,bj)*vVel( I ,J,K-1,bi,bj) |
152 |
DO I=iMin,iMax+1 |
DO I=iMin,iMax+1 |
153 |
C First compute the fraction of open water for the w-control volume |
C First compute the fraction of open water for the w-control volume |
154 |
C at the western face |
C at the western face |
155 |
hFacWtmp=max(hFacW(I,J,K-1,bi,bj)-Half,0) |
hFacWtmp=max(hFacW(I,J,K-1,bi,bj)-Half,0. _d 0) |
156 |
& + min(hFacW(I,J,K ,bi,bj),Half) |
& + min(hFacW(I,J,K ,bi,bj),Half) |
157 |
tmp_UbarZ=Half*( |
tmp_UbarZ=Half*( |
158 |
& _hFacW(I,J,K-1,bi,bj)*uVel( I ,J,K-1,bi,bj) |
& _hFacW(I,J,K-1,bi,bj)*uVel( I ,J,K-1,bi,bj) |