| 204 |
#else |
#else |
| 205 |
neu_val = .5 * gravity * |
neu_val = .5 * gravity * |
| 206 |
& (streamice_density * H_streamice (i,j,bi,bj) ** 2 - |
& (streamice_density * H_streamice (i,j,bi,bj) ** 2 - |
| 207 |
& streamice_density_ocean_avg * R_low(i,j,bi,bj) ** 2 |
& streamice_density_ocean_avg * R_low(i,j,bi,bj) ** 2) |
| 208 |
#endif |
#endif |
| 209 |
ELSE |
ELSE |
| 210 |
neu_val = .5 * gravity * |
neu_val = .5 * gravity * |
| 222 |
! ice in the current cell |
! ice in the current cell |
| 223 |
|
|
| 224 |
taudx_SI(i,j,bi,bj) = taudx_SI(i,j,bi,bj) - |
taudx_SI(i,j,bi,bj) = taudx_SI(i,j,bi,bj) - |
| 225 |
& .5 * dyG(i,j,bi,bj) * neu_val ! note negative sign is due to direction of normal vector |
& .5 * dyG(i,j,bi,bj)*(neu_val+streamice_addl_backstress) ! note negative sign is due to direction of normal vector |
| 226 |
taudx_SI(i,j+1,bi,bj) = taudx_SI(i,j+1,bi,bj) - |
taudx_SI(i,j+1,bi,bj) = taudx_SI(i,j+1,bi,bj) - |
| 227 |
& .5 * dyG(i,j,bi,bj) * neu_val |
& .5 * dyG(i,j,bi,bj)*(neu_val+streamice_addl_backstress) |
| 228 |
ENDIF |
ENDIF |
| 229 |
|
|
| 230 |
IF ((STREAMICE_ufacemask(i+1,j,bi,bj) .eq. 2) |
IF ((STREAMICE_ufacemask(i+1,j,bi,bj) .eq. 2) |
| 232 |
& .OR. (STREAMICE_hmask(i+1,j,bi,bj) .eq. 2) ) THEN |
& .OR. (STREAMICE_hmask(i+1,j,bi,bj) .eq. 2) ) THEN |
| 233 |
|
|
| 234 |
taudx_SI(i+1,j,bi,bj) = taudx_SI(i+1,j,bi,bj) + |
taudx_SI(i+1,j,bi,bj) = taudx_SI(i+1,j,bi,bj) + |
| 235 |
& .5 * dyG(i+1,j,bi,bj) * neu_val ! note negative sign is due to direction of normal vector |
& .5 * dyG(i+1,j,bi,bj)*(neu_val+streamice_addl_backstress) ! note negative sign is due to direction of normal vector |
| 236 |
taudx_SI(i+1,j+1,bi,bj) = taudx_SI(i+1,j+1,bi,bj) + |
taudx_SI(i+1,j+1,bi,bj) = taudx_SI(i+1,j+1,bi,bj) + |
| 237 |
& .5 * dyG(i+1,j,bi,bj) * neu_val |
& .5 * dyG(i+1,j,bi,bj)*(neu_val+streamice_addl_backstress) |
| 238 |
ENDIF |
ENDIF |
| 239 |
|
|
| 240 |
IF ((STREAMICE_vfacemask(i,j,bi,bj) .eq. 2) |
IF ((STREAMICE_vfacemask(i,j,bi,bj) .eq. 2) |
| 242 |
& .OR. (STREAMICE_hmask(i,j-1,bi,bj) .eq. 2) ) THEN |
& .OR. (STREAMICE_hmask(i,j-1,bi,bj) .eq. 2) ) THEN |
| 243 |
|
|
| 244 |
taudy_SI(i,j,bi,bj) = taudy_SI(i,j,bi,bj) - |
taudy_SI(i,j,bi,bj) = taudy_SI(i,j,bi,bj) - |
| 245 |
& .5 * dxG(i,j,bi,bj) * neu_val ! note negative sign is due to direction of normal vector |
& .5 * dxG(i,j,bi,bj)*(neu_val+streamice_addl_backstress) ! note negative sign is due to direction of normal vector |
| 246 |
taudy_SI(i+1,j,bi,bj) = taudy_SI(i+1,j,bi,bj) - |
taudy_SI(i+1,j,bi,bj) = taudy_SI(i+1,j,bi,bj) - |
| 247 |
& .5 * dxG(i,j,bi,bj) * neu_val |
& .5 * dxG(i,j,bi,bj)*(neu_val+streamice_addl_backstress) |
| 248 |
ENDIF |
ENDIF |
| 249 |
|
|
| 250 |
IF ((STREAMICE_vfacemask(i,j+1,bi,bj) .eq. 2) |
IF ((STREAMICE_vfacemask(i,j+1,bi,bj) .eq. 2) |
| 252 |
& .OR. (STREAMICE_hmask(i,j+1,bi,bj) .eq. 2) ) THEN |
& .OR. (STREAMICE_hmask(i,j+1,bi,bj) .eq. 2) ) THEN |
| 253 |
|
|
| 254 |
taudy_SI(i,j+1,bi,bj) = taudy_SI(i,j+1,bi,bj) + |
taudy_SI(i,j+1,bi,bj) = taudy_SI(i,j+1,bi,bj) + |
| 255 |
& .5 * dxG(i,j+1,bi,bj) * neu_val ! note negative sign is due to direction of normal vector |
& .5 * dxG(i,j+1,bi,bj)*(neu_val+streamice_addl_backstress) ! note negative sign is due to direction of normal vector |
| 256 |
taudy_SI(i+1,j+1,bi,bj) = taudy_SI(i+1,j+1,bi,bj) + |
taudy_SI(i+1,j+1,bi,bj) = taudy_SI(i+1,j+1,bi,bj) + |
| 257 |
& .5 * dxG(i,j+1,bi,bj) * neu_val |
& .5 * dxG(i,j+1,bi,bj)*(neu_val+streamice_addl_backstress) |
| 258 |
ENDIF |
ENDIF |
| 259 |
|
|
| 260 |
ENDIF |
ENDIF |