New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2128 for branches/devukmo2010/NEMO/OPA_SRC/SOL – NEMO

Ignore:
Timestamp:
2010-09-28T14:29:51+02:00 (14 years ago)
Author:
rfurner
Message:

merged branches OBS, ASM, Rivers, BDY & mixed_dynldf ready for vn3.3 merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devukmo2010/NEMO/OPA_SRC/SOL/solmat.F90

    r2031 r2128  
    1515   !!             3.2  ! 2009-06  (S. Masson)  distributed restart using iom 
    1616   !!              -   ! 2009-07  (R. Benshila)  suppression of rigid-lid option 
     17   !!             3.3  ! 2010-09  (D. Storkey) update for BDY module. 
    1718   !!---------------------------------------------------------------------- 
    1819 
     
    2627   USE phycst          ! physical constants 
    2728   USE obc_oce         ! ocean open boundary conditions 
     29   USE bdy_oce         ! unstructured open boundary conditions 
    2830   USE lbclnk          ! lateral boudary conditions 
    2931   USE lib_mpp         ! distributed memory computing 
     
    8082      ENDIF 
    8183 
    82 #if defined key_dynspg_flt  
    83 #   if ! defined key_obc 
     84#if defined key_dynspg_flt && ! defined key_obc && ! defined key_bdy 
    8485 
    8586      DO jj = 2, jpjm1                      ! matrix of free surface elliptic system 
     
    158159    ENDIF 
    159160#   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 
    160195#endif 
    161196 
Note: See TracChangeset for help on using the changeset viewer.