73 |
|
|
74 |
C Add windstress momentum impulse into the top-layer |
C Add windstress momentum impulse into the top-layer |
75 |
IF ( kLev .EQ. kSurface ) THEN |
IF ( kLev .EQ. kSurface ) THEN |
76 |
DO j=1,sNy |
c DO j=1,sNy |
77 |
|
C-jmc: Without CD-scheme, this is OK ; but with CD-scheme, needs to cover [0:sNy+1] |
78 |
|
DO j=0,sNy+1 |
79 |
DO i=1,sNx+1 |
DO i=1,sNx+1 |
80 |
gU(i,j,kLev,bi,bj) = gU(i,j,kLev,bi,bj) |
gU(i,j,kLev,bi,bj) = gU(i,j,kLev,bi,bj) |
81 |
& +foFacMom*surfaceForcingU(i,j,bi,bj) |
& +foFacMom*surfaceForcingU(i,j,bi,bj) |
172 |
C Add windstress momentum impulse into the top-layer |
C Add windstress momentum impulse into the top-layer |
173 |
IF ( kLev .EQ. kSurface ) THEN |
IF ( kLev .EQ. kSurface ) THEN |
174 |
DO j=1,sNy+1 |
DO j=1,sNy+1 |
175 |
DO i=1,sNx |
c DO i=1,sNx |
176 |
|
C-jmc: Without CD-scheme, this is OK ; but with CD-scheme, needs to cover [0:sNx+1] |
177 |
|
DO i=0,sNx+1 |
178 |
gV(i,j,kLev,bi,bj) = gV(i,j,kLev,bi,bj) |
gV(i,j,kLev,bi,bj) = gV(i,j,kLev,bi,bj) |
179 |
& +foFacMom*surfaceForcingV(i,j,bi,bj) |
& +foFacMom*surfaceForcingV(i,j,bi,bj) |
180 |
& *recip_drF(kLev)*recip_hFacS(i,j,kLev,bi,bj) |
& *recip_drF(kLev)*recip_hFacS(i,j,kLev,bi,bj) |