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 8306 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/BDY/bdyice_lim.F90 – NEMO

Ignore:
Timestamp:
2017-07-10T12:18:03+02:00 (7 years ago)
Author:
clem
Message:

step1: remove LIM2 from the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/BDY/bdyice_lim.F90

    r7646 r8306  
    22   !!====================================================================== 
    33   !!                       ***  MODULE  bdyice_lim  *** 
    4    !! Unstructured Open Boundary Cond. :  Open boundary conditions for sea-ice (LIM2 and LIM3) 
     4   !! Unstructured Open Boundary Cond. :  Open boundary conditions for sea-ice (LIM3) 
    55   !!====================================================================== 
    66   !!  History :  3.3  !  2010-09 (D. Storkey)  Original code 
     
    88   !!              -   !  2012-01 (C. Rousset)  add lim3 and remove useless jk loop  
    99   !!---------------------------------------------------------------------- 
    10 #if defined key_lim2 || defined key_lim3 
    11    !!---------------------------------------------------------------------- 
    12    !!   'key_lim2'                                                 LIM-2 sea ice model 
     10#if defined key_lim3 
     11   !!---------------------------------------------------------------------- 
    1312   !!   'key_lim3'                                                 LIM-3 sea ice model 
    1413   !!---------------------------------------------------------------------- 
     
    2019   USE eosbn2          ! equation of state 
    2120   USE oce             ! ocean dynamics and tracers variables 
    22 #if defined key_lim2 
    23    USE par_ice_2 
    24    USE ice_2           ! LIM_2 ice variables 
    25    USE dom_ice_2       ! sea-ice domain 
    26 #elif defined key_lim3 
     21#if defined key_lim3 
    2722   USE ice             ! LIM_3 ice variables 
    2823   USE limvar 
     
    5550      !!                  ***  SUBROUTINE bdy_ice_lim  *** 
    5651      !! 
    57       !! ** Purpose : - Apply open boundary conditions for ice (LIM2 and LIM3) 
     52      !! ** Purpose : - Apply open boundary conditions for ice (LIM3) 
    5853      !! 
    5954      !!---------------------------------------------------------------------- 
     
    110105      REAL(wp) ::   zwgt, zwgt1        ! local scalar 
    111106      REAL(wp) ::   ztmelts, zdh 
    112 #if  defined key_lim2 && ! defined key_lim2_vp && defined key_agrif 
    113      USE ice_2, vt_s => hsnm 
    114      USE ice_2, vt_i => hicm 
    115 #endif 
    116107      !!------------------------------------------------------------------------------ 
    117108      ! 
     
    120111      jgrd = 1      ! Everything is at T-points here 
    121112      ! 
    122 #if defined key_lim2 
    123       DO jb = 1, idx%nblenrim(jgrd) 
    124          ji    = idx%nbi(jb,jgrd) 
    125          jj    = idx%nbj(jb,jgrd) 
    126          zwgt  = idx%nbw(jb,jgrd) 
    127          zwgt1 = 1.e0 - idx%nbw(jb,jgrd) 
    128          frld (ji,jj) = ( frld (ji,jj) * zwgt1 + dta%frld (jb) * zwgt ) * tmask(ji,jj,1)     ! Leads fraction  
    129          hicif(ji,jj) = ( hicif(ji,jj) * zwgt1 + dta%hicif(jb) * zwgt ) * tmask(ji,jj,1)     ! Ice depth  
    130          hsnif(ji,jj) = ( hsnif(ji,jj) * zwgt1 + dta%hsnif(jb) * zwgt ) * tmask(ji,jj,1)     ! Snow depth 
    131       END DO  
    132  
    133       CALL lbc_bdy_lnk( frld,  'T', 1., ib_bdy )                                         ! lateral boundary conditions 
    134       CALL lbc_bdy_lnk( hicif, 'T', 1., ib_bdy ) 
    135       CALL lbc_bdy_lnk( hsnif, 'T', 1., ib_bdy ) 
    136  
    137       vt_i(:,:) = hicif(:,:) * frld(:,:) 
    138       vt_s(:,:) = hsnif(:,:) * frld(:,:) 
    139       ! 
    140 #elif defined key_lim3 
     113#if defined key_lim3 
    141114 
    142115      DO jl = 1, jpl 
Note: See TracChangeset for help on using the changeset viewer.