Changeset 2128 for branches/devukmo2010/NEMO/OPA_SRC/SOL/solmat.F90
- Timestamp:
- 2010-09-28T14:29:51+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/devukmo2010/NEMO/OPA_SRC/SOL/solmat.F90
r2031 r2128 15 15 !! 3.2 ! 2009-06 (S. Masson) distributed restart using iom 16 16 !! - ! 2009-07 (R. Benshila) suppression of rigid-lid option 17 !! 3.3 ! 2010-09 (D. Storkey) update for BDY module. 17 18 !!---------------------------------------------------------------------- 18 19 … … 26 27 USE phycst ! physical constants 27 28 USE obc_oce ! ocean open boundary conditions 29 USE bdy_oce ! unstructured open boundary conditions 28 30 USE lbclnk ! lateral boudary conditions 29 31 USE lib_mpp ! distributed memory computing … … 80 82 ENDIF 81 83 82 #if defined key_dynspg_flt 83 # if ! defined key_obc 84 #if defined key_dynspg_flt && ! defined key_obc && ! defined key_bdy 84 85 85 86 DO jj = 2, jpjm1 ! matrix of free surface elliptic system … … 158 159 ENDIF 159 160 # endif 161 162 # elif defined key_dynspg_flt && defined key_bdy 163 164 ! defined gcdmat in the case of unstructured open boundaries 165 DO jj = 2, jpjm1 166 DO ji = 2, jpim1 167 zcoef = z2dt * z2dt * grav * bmask(ji,jj) 168 169 ! south coefficient 170 zcoefs = -zcoef * hv(ji,jj-1) * e1v(ji,jj-1)/e2v(ji,jj-1) 171 zcoefs = zcoefs * bdyvmask(ji,jj-1) 172 gcp(ji,jj,1) = zcoefs 173 174 ! west coefficient 175 zcoefw = -zcoef * hu(ji-1,jj) * e2u(ji-1,jj)/e1u(ji-1,jj) 176 zcoefw = zcoefw * bdyumask(ji-1,jj) 177 gcp(ji,jj,2) = zcoefw 178 179 ! east coefficient 180 zcoefe = -zcoef * hu(ji,jj) * e2u(ji,jj)/e1u(ji,jj) 181 zcoefe = zcoefe * bdyumask(ji,jj) 182 gcp(ji,jj,3) = zcoefe 183 184 ! north coefficient 185 zcoefn = -zcoef * hv(ji,jj) * e1v(ji,jj)/e2v(ji,jj) 186 zcoefn = zcoefn * bdyvmask(ji,jj) 187 gcp(ji,jj,4) = zcoefn 188 189 ! diagonal coefficient 190 gcdmat(ji,jj) = e1t(ji,jj)*e2t(ji,jj)*bmask(ji,jj) & 191 - zcoefs -zcoefw -zcoefe -zcoefn 192 END DO 193 END DO 194 160 195 #endif 161 196
Note: See TracChangeset
for help on using the changeset viewer.