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 834 for trunk/NEMO/LIM_SRC_3/limdyn.F90 – NEMO

Ignore:
Timestamp:
2008-03-07T18:11:35+01:00 (16 years ago)
Author:
ctlod
Message:

Clean comments and useless lines, see ticket:#72

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_3/limdyn.F90

    r825 r834  
    66#if defined key_lim3 
    77   !!---------------------------------------------------------------------- 
    8    !!   'key_lim3' :                                   LIM sea-ice model 
     8   !!   'key_lim3' :                                 LIM3 sea-ice model 
    99   !!---------------------------------------------------------------------- 
    1010   !!    lim_dyn      : computes ice velocities 
     
    3636 
    3737   !!---------------------------------------------------------------------- 
    38    !!   LIM 2.0,  UCL-LOCEAN-IPSL (2005) 
     38   !!   LIM 3.0,  UCL-ASTR-LOCEAN-IPSL (2008) 
    3939   !! $Header: /home/opalod/NEMOCVSROOT/NEMO/LIM_SRC/limdyn.F90,v 1.5 2005/03/27 18:34:41 opalod Exp $ 
    4040   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
     
    5858      !!   1.0  !  01-04   (LIM)  Original code 
    5959      !!   2.0  !  02-08   (C. Ethe, G. Madec)  F90, mpp 
    60       !!   3.0  !  2007-03 (M.A. Morales Maqueda, S. Bouillon, M. Vancoppenolle) LIM3, EVP, C-grid 
     60      !!   3.0  !  2007-03 (M.A. Morales Maqueda, S. Bouillon, M. Vancoppenolle)  
     61      !!                   LIM3, EVP, C-grid 
    6162      !!------------------------------------------------------------------------------------ 
    6263      !! * Local variables 
    63       INTEGER ::   ji, jj, jl        ! dummy loop indices 
     64      INTEGER ::   ji, jj            ! dummy loop indices 
    6465      INTEGER :: i_j1, i_jpj         ! Starting/ending j-indices for rheology 
    65 ! nemo modif 
    66 !        jhemis                      ! jhemis = 1 (NH) ; jhemis = -1 (SH) 
     66 
    6767      REAL(wp) ::   & 
    6868         ztairx, ztairy,          &  ! tempory scalars 
     
    7070         ztglx , ztgly ,          & 
    7171         zt11, zt12, zt21, zt22 , & 
    72          zustm, zsfrld, zsfrldm4, & 
     72         zustm,                   & 
    7373         zsfrldmx2, zsfrldmy2,    & 
    7474         zu_ice, zv_ice, ztair2 
    75 ! nemo modif 
     75 
    7676      REAL(wp),DIMENSION(jpj) ::   & 
    7777           zind,                     &  ! i-averaged indicator of sea-ice 
     
    8686      IF ( ln_limdyn ) THEN 
    8787 
    88          ! Mean ice and snow thicknesses.           
    89  
     88         ! ocean velocity 
    9089         u_oce(:,:)  = u_io(:,:) * tmu(:,:) 
    9190         v_oce(:,:)  = v_io(:,:) * tmv(:,:) 
     
    9493         old_v_ice(:,:) = v_ice(:,:) * tmv(:,:) 
    9594 
    96          !                                         ! Rheology (ice dynamics) 
    97          !                                         ! ======== 
     95         ! Rheology (ice dynamics) 
     96         ! ======== 
    9897 
    9998         !  Define the j-limits where ice rheology is computed 
     
    105104            IF(ln_ctl) CALL prt_ctl_info( 'lim_dyn  :    i_j1 = ', ivar1=i_j1, clinfo2=' ij_jpj = ', ivar2=i_jpj ) 
    106105            CALL lim_rhg( i_j1, i_jpj ) 
    107  
    108106         ELSE                                 ! optimization of the computational area 
    109107 
     
    124122               i_j1 = MAX( 1, i_j1-1 ) 
    125123               IF(ln_ctl) CALL prt_ctl_info( 'lim_dyn  : NH  i_j1 = ', ivar1=i_j1, clinfo2=' ij_jpj = ', ivar2=i_jpj ) 
    126  
    127124               CALL lim_rhg( i_j1, i_jpj ) 
    128125 
     
    169166         ENDIF 
    170167 
    171          !                                         ! Ice-Ocean stress 
    172          !                                         ! ================ 
     168         ! Ice-Ocean stress 
     169         ! ================ 
    173170         DO jj = 2, jpjm1 
    174 !           jhemis = SIGN(1, jj - jeq ) 
    175 !           zsang  = REAL(jhemis) * sangvg 
    176 !nemo new version modif 
    177171            zsang  = SIGN(1.e0, gphif(1,jj-1) ) * sangvg 
    178172 
     
    193187               ztairy =  ( 2.0 - at_i(ji,jj) - at_i(ji,jj+1) ) * gtauy(ji,jj) / cai * cao 
    194188 
    195 !              ! test on oscillations 
    196 !              ztairx = 0.0 
    197 !              ztairy = 0.0 
    198  
    199189               zsfrldmx2 = at_i(ji,jj) + at_i(ji+1,jj) 
    200190               zsfrldmy2 = at_i(ji,jj) + at_i(ji,jj+1) 
     
    208198               ztglx   = zsfrldmx2 * rhoco * zmod * ( cangvg * zu_ice - zsang * zv_ice )  
    209199               ztgly   = zsfrldmy2 * rhoco * zmod * ( cangvg * zv_ice + zsang * zu_ice )  
    210  
    211 !              ! test on oscillations 
    212 !              ztglx  = 0.0 
    213 !              ztgly  = 0.0 
     200! 
     201!              ! IMPORTANT 
     202!              ! these lignes are bound to prevent numerical oscillations 
     203!              ! in the ice-ocean stress 
     204!              ! They are physically ill-based. There is a cleaner solution 
     205!              ! to try (remember discussion in Paris Gurvan) 
     206! 
    214207               ztglx   = ztglx * exp( - zmod / 0.5 ) 
    215208               ztgly   = ztglx * exp( - zmod / 0.5 ) 
     
    281274        CALL prt_ctl(tab2d_1=at_i  , clinfo1=' lim_dyn  : at_i  :') 
    282275      ENDIF 
    283  
    284 !OPA9_DYN LIM2.1 2005 
    285 !END OPA9_DYN LIM2.1 2005 
    286276 
    287277   END SUBROUTINE lim_dyn 
Note: See TracChangeset for help on using the changeset viewer.