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/limthd_dif.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/limthd_dif.F90

    r825 r834  
    11MODULE limthd_dif 
    22#if defined key_lim3 
     3   !!---------------------------------------------------------------------- 
     4   !!   'key_lim3'                                      LIM3 sea-ice model 
     5   !!---------------------------------------------------------------------- 
    36   !!====================================================================== 
    47   !!                       ***  MODULE limthd_dif *** 
     
    1417   USE thd_ice 
    1518   USE iceini 
    16    USE limicepoints 
    1719   USE limistate 
    1820   USE in_out_manager 
     
    3436 
    3537   !!---------------------------------------------------------------------- 
    36    !!   LIM 3.0,  UCL-ASTR-LOCEAN-IPSL (2005) 
     38   !!   LIM 3.0,  UCL-ASTR-LOCEAN-IPSL (2008) 
    3739   !!   (c) UCL-ASTR and Martin Vancoppenolle 
    3840   !!---------------------------------------------------------------------- 
     
    8890        !! ** History : 
    8991        !!           (02-2003) Martin Vancoppenolle, Louvain-la-Neuve, Belgium 
    90         !!           (06-2005) Martin Vancoppenolle still!!! for the 3d version... 
     92        !!           (06-2005) Martin Vancoppenolle, 3d version 
    9193        !!           (11-2006) Vectorized by Xavier Fettweis (UCL-ASTR) 
    9294        !!           (04-2007) Energy conservation tested by M. Vancoppenolle 
     
    106108                    layer,    &   ! vertical dummy loop index  
    107109                    nconv,    &   ! number of iterations in iterative procedure 
    108 !                   nconvmax = 50, &! maximum number of iterations for temperature computations (50) 
    109                     index,    &   ! 
    110110                    minnumeqmin, & ! 
    111111                    maxnumeqmax 
     
    158158          zfsw     ,   & !solar radiation absorbed at the surface 
    159159          zf       ,   & ! surface flux function 
    160           dzf      ,   & ! derivative of the surface flux function 
    161           zksn           !effective snow conductivity 
     160          dzf            ! derivative of the surface flux function 
    162161 
    163162       REAL(wp)  ::           &  ! constant values 
     
    168167          zbeta     =  0.117,     & !: for thermal conductivity (could be 0.13) 
    169168          zraext_s  =  1.0e08,    & !: extinction coefficient of radiation in the snow 
    170 !         zraext_i  =  1.5,       & !extinction coefficient of radiation in the ice 
    171 !         zraext_i  =  1.0,       & !extinction coefficient of radiation in the ice 
    172                                     ! MY 0.87, FY 1.2 (Grenfell, Perovich and Light 
    173                                     ! 07) 
    174 !         zerrmax   =  1.0e-4 ,   & !: error criterion for convergence of the iterative process 
    175           zfc_int           ,     & !: conductive heat flux at the interface 
    176169          zkimin    =  0.10 ,     & !: minimum ice thermal conductivity 
    177170          zht_smin  =  1.0e-4       !: minimum snow depth 
    178171 
    179172        REAL(wp)  ::          &  ! local variables  
    180           zheshth,            &  ! = zhe(ji) / thth 
    181173          ztmelt_i,           &  ! ice melting temperature 
    182           zerritmax,          &  ! current maximal error on temperature  
    183           zexp 
     174          zerritmax              ! current maximal error on temperature  
    184175 
    185176        REAL(wp), DIMENSION(jpij)  :: & 
    186177          zerrit,             &  ! current error on temperature  
    187178          zdifcase,           &  ! case of the equation resolution (1->4) 
    188           zghe,               &  ! correction factor of the thermal conductivity 
    189           zhe,                &  ! effective thickness for compu. of equ. thermal conductivity 
    190179          zftrice,            &  ! solar radiation transmitted through the ice 
    191           zihic, zihe, zhsu 
    192  
    193         CHARACTER (len=50) ::   charout 
     180          zihic, zhsu 
     181 
    194182!!-- End of declarations 
    195183!!---------------------------------------------------------------------------------------------- 
    196184 
    197        ! new namelist parameters 
    198 !      maxer_i_thd  = maxer_i_thd 
    199 !      thcon_i_swi = thcon_i_swi 
    200 !      kappa_i = kappa_i 
    201 !      nconv_i_thd = nconv_i_thd 
    202  
    203185       IF(lwp) WRITE(numout,*)'lim_thd_dif : Heat diffusion in sea ice for cat :', jl 
    204186 
    205        thcon_i_swi = 1 ! Pringle et al. (2007) 
    206187! 
    207188!------------------------------------------------------------------------------! 
     
    339320                        zradtr_i(ji,nlay_i) 
    340321       END DO 
     322       ! +++++ 
     323 
    341324       DO layer = 1, nlay_i 
    342325          DO ji = kideb , kiut 
     
    345328       END DO 
    346329 
    347        ! +++++ 
    348330        
    349331! 
     
    379361       DO WHILE ((zerritmax > maxer_i_thd).AND.(nconv < nconv_i_thd)) 
    380362 
    381 !      ! +++++  
    382 !         DO ji = kideb , kiut 
    383 !         zji                 = MOD( npb(ji) - 1, jpi ) + 1 
    384 !         zjj                 = ( npb(ji) - 1 ) / jpi + 1 
    385 !         IF ( (zji.EQ.jiindex) .AND. (zjj.EQ.jjindex) ) THEN 
    386 !            WRITE(numout,*) ' Iteration : ', nconv 
    387 !            WRITE(numout,*) ' t_su     : ', t_su_b(ji) 
    388 !            WRITE(numout,*) ' t_s      : ', t_s_b(ji,1) 
    389 !            WRITE(numout,*) ' t_i      : ', t_i_b(ji,:) 
    390 !            WRITE(numout,*) ' difcase  : ', zdifcase(ji) 
    391 !         ENDIF 
    392 !         END DO 
    393 !      ! +++++  
    394  
    395363       nconv   =  nconv+1 
    396364 
     
    410378 
    411379       IF ( thcon_i_swi .EQ. 1 ) THEN 
    412        ! Pringle et al formula included, should be tested 
     380       ! Pringle et al formula included, 
    413381       ! 2.11 + 0.09 S/T - 0.011.T 
    414382       DO ji = kideb , kiut 
     
    489457          zkappa_i(ji,0)        = ztcond_i(ji,0)/MAX(zeps,zh_i(ji)) 
    490458          zkappa_i(ji,nlay_i)   = ztcond_i(ji,nlay_i) / MAX(zeps,zh_i(ji)) 
    491  
    492459       !-- Interface 
    493460          zkappa_s(ji,nlay_s)   = 2.0*rcdsn*ztcond_i(ji,0)/MAX(zeps, & 
     
    616583                   numeqmin(ji)    =  1 
    617584                   numeqmax(ji)    =  nlay_i + nlay_s + 1 
     585 
    618586                   !!surface equation 
    619587                   ztrid(ji,1,1) = 0.0 
    620588                   ztrid(ji,1,2) = dzf(ji) - zg1s*zkappa_s(ji,0) 
    621589                   ztrid(ji,1,3) = zg1s*zkappa_s(ji,0) 
    622                    ! bug again ??? 
    623 !                  zindterm(ji,1) = dzf(ji)*ztsuold(ji)   - zf(ji) 
    624590                   zindterm(ji,1) = dzf(ji)*t_su_b(ji)   - zf(ji) 
    625591 
     
    853819       END DO 
    854820 
     821       !-------------------------! 
     822       ! Heat conservation       ! 
     823       !-------------------------! 
    855824       IF ( con_i ) THEN 
    856        !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
    857        ! ++++ heat conservation ++++ ' 
    858        ! Internal fluxes ... goes to trash!!! 
    859825 
    860826       DO ji = kideb, kiut 
     
    884850          zji                 = MOD( npb(ji) - 1, jpi ) + 1 
    885851          zjj                 = ( npb(ji) - 1 ) / jpi + 1 
    886 !         IF ( ( zji.EQ.jiindex ) .AND. ( zjj.EQ.jjindex) ) THEN 
    887 !            WRITE(numout,*) ' layer    : ', layer 
    888 !            WRITE(numout,*) ' fc_i     : ', fc_i(ji,layer) 
    889 !            WRITE(numout,*) ' zkappa_i : ', zkappa_i(ji,layer) 
    890 !            WRITE(numout,*) ' ztcond_i : ', ztcond_i(ji,layer) 
    891 !            WRITE(numout,*) ' zspeche_i: ', zspeche_i(ji,layer) 
    892 !            WRITE(numout,*) ' ti2      : ', t_i_b(ji,layer+1) 
    893 !            WRITE(numout,*) ' ti1      : ', t_i_b(ji,layer) 
    894 !         ENDIF 
    895852       END DO 
    896853       END DO 
     
    903860 
    904861       ENDIF 
    905  
    906        !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
    907862 
    908863    END SUBROUTINE lim_thd_dif 
Note: See TracChangeset for help on using the changeset viewer.