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 1711 for trunk/NEMO/LIM_SRC_2 – NEMO

Changeset 1711 for trunk/NEMO/LIM_SRC_2


Ignore:
Timestamp:
2009-11-04T17:01:10+01:00 (14 years ago)
Author:
rblod
Message:

Add tilt off sea-surface in LIM2 rheology, see ticket #587

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_2/limrhg_2.F90

    r1569 r1711  
    1818   !!---------------------------------------------------------------------- 
    1919   USE par_oce        ! ocean parameter 
     20   USE dom_oce        ! ocean space and time domain 
     21   USE sbc_oce        ! surface boundary condition: ocean variables 
    2022   USE sbc_ice        ! surface boundary condition: ice variables 
    2123   USE dom_ice_2      ! domaine: ice variables 
     
    6365      INTEGER ::   iter, jter          ! temporary integers 
    6466      CHARACTER (len=50) ::   charout 
    65       REAL(wp) ::   ze11  , ze12  , ze22  , ze21       ! temporary scalars 
    66       REAL(wp) ::   zt11  , zt12  , zt21  , zt22       !    "         " 
    67       REAL(wp) ::   zvis11, zvis21, zvis12, zvis22     !    "         " 
    68       REAL(wp) ::   zgphsx, ztagnx, zunw, zur, zusw    !    "         " 
    69       REAL(wp) ::   zgphsy, ztagny, zvnw, zvr          !    "         " 
     67      REAL(wp) ::   ze11  , ze12  , ze22  , ze21               ! temporary scalars 
     68      REAL(wp) ::   zt11  , zt12  , zt21  , zt22               !    "         " 
     69      REAL(wp) ::   zvis11, zvis21, zvis12, zvis22             !    "         " 
     70      REAL(wp) ::   zgphsx, ztagnx, zgsshx, zunw, zur, zusw    !    "         " 
     71      REAL(wp) ::   zgphsy, ztagny, zgsshy, zvnw, zvr          !    "         " 
    7072      REAL(wp) ::   zresm,  za, zac, zmod 
    7173      REAL(wp) ::   zmpzas, zstms, zindu, zusdtp, zmassdt, zcorlal 
     
    195197               &     + ( alambd(ji,jj,1,1,1,2) - alambd(ji,jj,1,2,1,2) ) * zpresh(ji-1,jj  ) 
    196198 
     199            ! Gradient of the sea surface height 
     200            zgsshx =  (   (ssh_m(ji  ,jj  ) - ssh_m(ji-1,jj  ))/e1u(ji-1,jj  )   & 
     201               &       +  (ssh_m(ji  ,jj-1) - ssh_m(ji-1,jj-1))/e1u(ji-1,jj-1)   ) * 0.5 
     202            zgsshy =  (   (ssh_m(ji  ,jj  ) - ssh_m(ji  ,jj-1))/e2v(ji  ,jj-1)   & 
     203               &       +  (ssh_m(ji-1,jj  ) - ssh_m(ji-1,jj-1))/e2v(ji-1,jj-1)   ) * 0.5 
     204 
    197205            ! Computation of the velocity field taking into account the ice-ice interaction.                                  
    198206            ! Terms that are independent of the ice velocity field. 
    199             za1ct(ji,jj) = ztagnx - zcorl(ji,jj) * v_oce(ji,jj) - zgphsx 
    200             za2ct(ji,jj) = ztagny + zcorl(ji,jj) * u_oce(ji,jj) - zgphsy 
     207            za1ct(ji,jj) = ztagnx - zmass(ji,jj) * grav * zgsshx - zgphsx 
     208            za2ct(ji,jj) = ztagny - zmass(ji,jj) * grav * zgsshy - zgphsy 
    201209         END DO 
    202210      END DO 
Note: See TracChangeset for help on using the changeset viewer.