| 85 |
& (STREAMICE_hmask(i-2,j,bi,bj).eq.1.0)) |
& (STREAMICE_hmask(i-2,j,bi,bj).eq.1.0)) |
| 86 |
& H0_valid(i,j,bi,bj)=.true. |
& H0_valid(i,j,bi,bj)=.true. |
| 87 |
|
|
| 88 |
IF ((Gi.eq.1).and.(STREAMICE_hmask(i-1,j,bi,bj).eq.3.0)) |
IF ((STREAMICE_hmask(i-1,j,bi,bj).eq.3.0)) |
| 89 |
& THEN ! we are at western bdry and there is a thick. bdry cond |
& THEN ! we are at western bdry and there is a thick. bdry cond |
| 90 |
hflux_x (i,j,bi,bj) = h(i-1,j,bi,bj) * uface |
hflux_x (i,j,bi,bj) = h(i-1,j,bi,bj) * uface |
| 91 |
|
! PRINT *, "BOUNDARY FLUX RIGHT", hflux_x (i,j,bi,bj), |
| 92 |
|
! & h(i-1,j,bi,bj),uface,i,j |
| 93 |
ELSEIF (H0_valid(i,j,bi,bj)) THEN |
ELSEIF (H0_valid(i,j,bi,bj)) THEN |
| 94 |
phi = SLOPE_LIMITER ( |
phi = SLOPE_LIMITER ( |
| 95 |
& stencil(0)-stencil(-1), |
& stencil(0)-stencil(-1), |
| 109 |
& (STREAMICE_hmask(i+1,j,bi,bj).eq.1.0)) |
& (STREAMICE_hmask(i+1,j,bi,bj).eq.1.0)) |
| 110 |
& H0_valid(i,j,bi,bj)=.true. |
& H0_valid(i,j,bi,bj)=.true. |
| 111 |
|
|
| 112 |
IF ((Gi.eq.Nx).and.(STREAMICE_hmask(i+1,j,bi,bj).eq.3.0)) |
IF ((STREAMICE_hmask(i,j,bi,bj).eq.3.0)) |
| 113 |
& THEN ! we are at western bdry and there is a thick. bdry cond |
& THEN ! we are at western bdry and there is a thick. bdry cond |
| 114 |
hflux_x (i,j,bi,bj) = h(i+1,j,bi,bj) * uface |
hflux_x (i,j,bi,bj) = h(i,j,bi,bj) * uface |
| 115 |
|
! PRINT *, "BOUNDARY FLUX LEFT", hflux_x(i,j,bi,bj), |
| 116 |
|
! & h(i,j,bi,bj),uface |
| 117 |
ELSEIF (H0_valid(i,j,bi,bj)) THEN |
ELSEIF (H0_valid(i,j,bi,bj)) THEN |
| 118 |
phi = SLOPE_LIMITER ( |
phi = SLOPE_LIMITER ( |
| 119 |
& stencil(0)-stencil(-1), |
& stencil(0)-stencil(-1), |