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 1857 for branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limmsh_2.F90 – NEMO

Ignore:
Timestamp:
2010-05-03T13:59:46+02:00 (14 years ago)
Author:
gm
Message:

ticket:#665 Reverting previous commit and going back to revision 1850

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limmsh_2.F90

    r1855 r1857  
    44   !! LIM 2.0 ice model :   definition of the ice mesh parameters 
    55   !!====================================================================== 
    6    !! ** History :  LIM  ! 2001-04 (UCL)  original code 
    7    !!               2.0  ! 2002-08 (C. Ethe, G. Madec) F90, module 
    8    !!---------------------------------------------------------------------- 
    96#if defined key_lim2 
    107   !!---------------------------------------------------------------------- 
     
    1310   !!   lim_msh_2   : definition of the ice mesh 
    1411   !!---------------------------------------------------------------------- 
     12   !! * Modules used 
    1513   USE phycst 
    1614   USE dom_oce 
     
    2220   PRIVATE 
    2321 
    24    PUBLIC   lim_msh_2   ! routine called by ice_ini_2.F90 
    25  
    26    !!---------------------------------------------------------------------- 
    27    !! NEMO/LIM 3.3,  UCL-LOCEAN-IPSL (2010)  
     22   !! * Accessibility 
     23   PUBLIC lim_msh_2      ! routine called by ice_ini_2.F90 
     24 
     25   !!---------------------------------------------------------------------- 
     26   !!   LIM 2.0,  UCL-LOCEAN-IPSL (2005)  
    2827   !! $Id$ 
    29    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     28   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    3029   !!---------------------------------------------------------------------- 
    3130 
     
    4342      !!              - Initialization of the ice masks (tmsk, umsk) 
    4443      !!  
    45       !! Reference  : Deleersnijder et al. Ocean Modelling 100, 7-10  
     44      !! ** Refer.  : Deleersnijder et al. Ocean Modelling 100, 7-10  
     45      !! 
     46      !! ** History : 
     47      !!         original    : 01-04 (LIM) 
     48      !!         addition    : 02-08 (C. Ethe, G. Madec) 
    4649      !!---------------------------------------------------------------------  
    47       INTEGER  ::   ji, jj   ! dummy loop indices 
    48       REAL(wp) ::   zh1p, zd1d2p, zusden    ! temporary scalars 
    49       REAL(wp) ::   zh2p, zd2d1p, zusden2   !    -         - 
    50       REAL(wp), DIMENSION(jpi,jpj) ::   zd2d1 , zd1d2   ! 2D workspace 
     50      !! * Local variables 
     51      INTEGER :: ji, jj      ! dummy loop indices 
     52 
     53      REAL(wp), DIMENSION(jpi,jpj) ::  & 
     54         zd2d1 , zd1d2       ! Derivative of zh2 (resp. zh1) in the x direction 
     55         !                   ! (resp. y direction) (defined at the center) 
     56      REAL(wp) ::         & 
     57         zh1p  , zh2p   , &  ! Idem zh1, zh2 for the bottom left corner of the grid 
     58         zd2d1p, zd1d2p , &  ! Idem zd2d1, zd1d2 for the bottom left corner of the grid 
     59         zusden, zusden2     ! temporary scalars 
    5160      !!--------------------------------------------------------------------- 
    5261 
     
    103112      !------------------- 
    104113!!ibug ??? 
    105       akappa(:,:,:,:)     = 0.e0 
    106       wght  (:,:,:,:)    = 0.e0 
     114      akappa(:,:,:,:) = 0.e0 
     115      wght(:,:,:,:) = 0.e0 
    107116      alambd(:,:,:,:,:,:) = 0.e0 
    108       tmu   (:,:)        = 0.e0 
     117      tmu(:,:) = 0.e0 
    109118!!i 
    110119       
     
    229238         END DO 
    230239      END DO 
    231       CALL lbc_lnk( tmu(:,:), 'I', 1. )      !--lateral boundary conditions     
    232        
    233       area(:,:) = e1t(:,:) * e2t(:,:)        ! unmasked and masked area of T-grid cell 
     240       
     241      !--lateral boundary conditions     
     242      CALL lbc_lnk( tmu(:,:), 'I', 1. ) 
     243       
     244      ! unmasked and masked area of T-grid cell 
     245      area(:,:) = e1t(:,:) * e2t(:,:) 
    234246       
    235247   END SUBROUTINE lim_msh_2 
     
    239251   !!   Default option            Dummy Module         NO LIM sea-ice model 
    240252   !!---------------------------------------------------------------------- 
     253CONTAINS 
     254   SUBROUTINE lim_msh_2           ! Dummy routine 
     255   END SUBROUTINE lim_msh_2 
    241256#endif 
    242257 
Note: See TracChangeset for help on using the changeset viewer.