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

    r825 r834  
    11MODULE limitd_th 
    22#if defined key_lim3 
     3   !!---------------------------------------------------------------------- 
     4   !!   'key_lim3' :                                   LIM3 sea-ice model 
     5   !!---------------------------------------------------------------------- 
    36   !!====================================================================== 
    47   !!                       ***  MODULE limitd_th *** 
     
    1518   USE ice_oce          ! ice variables 
    1619   USE thd_ice 
    17    USE limicepoints 
    1820   USE limistate 
    1921   USE in_out_manager 
    2022   USE ice 
    2123   USE par_ice 
    22    USE limthd_lab 
    2324   USE limthd_lac 
    2425   USE limvar 
     
    4445 
    4546   !!---------------------------------------------------------------------- 
    46    !!   LIM-@ 4.0,  UCL-ASTR (2005) 
     47   !!   LIM3.0,  UCL-ASTR (2008) 
    4748   !!   (c) UCL-ASTR and Martin Vancoppenolle 
    4849   !!---------------------------------------------------------------------- 
     
    7374        !! ** History : 
    7475        !!           (12-2005) Martin Vancoppenolle  
    75         !!            Au moment ou j'ecris ces lignes, je ne me rends pas  
    76         !!             compte du boulot que j'entame... un truc de malate comme 
    77         !!             on dit ici chez les Belches 
    7876        !! 
    7977        !!------------------------------------------------------------------ 
     
    8179 
    8280       !! * Local variables 
    83        INTEGER ::   ji,       &   ! spatial dummy loop index 
    84                     jj,       &   ! spatial dummy loop index 
    85                     jk,       &   ! vertical layering dummy loop index 
    86                     jl,       &   ! ice category dummy loop index 
    87                     jm,       &   ! ice types    dummy loop index 
    88                     index,    & 
     81       INTEGER ::   jm,       &   ! ice types    dummy loop index 
    8982                    jbnd1,    & 
    9083                    jbnd2 
     
    9487          epsi10    =  1.0e-10 
    9588 
    96        REAL(wp)  ::           &  ! constant values for ice enthalpy 
    97           zindb                 
    98  
    9989!!-- End of declarations 
    10090!!---------------------------------------------------------------------------------------------- 
    10191 
    102        IF(lwp) THEN 
     92       IF (lwp) THEN 
    10393          WRITE(numout,*) 
    104           WRITE(numout,*) 'lim_itd_th : Thermodynamics of the ice thickness distribution' 
     94          WRITE(numout,*) 'lim_itd_th  : Thermodynamics of the ice thickness distribution' 
    10595          WRITE(numout,*) '~~~~~~~~~~~' 
    10696       ENDIF 
     
    120110      CALL lim_var_agg(1) 
    121111 
    122 !+++++ 
    123       WRITE(numout,*) ' From limitd_th : '  
    124       WRITE(numout,*) ' at_i       : ', at_i(jiindex,jjindex) 
    125       WRITE(numout,*) ' vt_i       : ', vt_i(jiindex,jjindex) 
    126       WRITE(numout,*) ' vt_s       : ', vt_s(jiindex,jjindex) 
    127       DO jl = 1, jpl 
    128          WRITE(numout,*) '* - category number ', jl 
    129          WRITE(numout,*) ' a_i        : ', a_i(jiindex,jjindex,jl) 
    130          WRITE(numout,*) ' v_i        : ', v_i(jiindex,jjindex,jl) 
    131          WRITE(numout,*) ' ht_i       : ', ht_i(jiindex,jjindex,jl) 
    132          WRITE(numout,*) ' v_s        : ', v_s(jiindex,jjindex,jl) 
    133          WRITE(numout,*) ' ht_s       : ', ht_s(jiindex,jjindex,jl) 
    134          WRITE(numout,*) ' e_s        : ', e_s(jiindex,jjindex,1,jl)/1.0e9 
    135          WRITE(numout,*) ' e_i        : ', e_i(jiindex,jjindex,1:nlay_i,jl)/1.0e9 
    136          WRITE(numout,*) ' t_su       : ', t_su(jiindex,jjindex,jl) 
    137          WRITE(numout,*) ' t_snow     : ', t_s(jiindex,jjindex,1,jl) 
    138          WRITE(numout,*) ' t_i        : ', t_i(jiindex,jjindex,1:nlay_i,jl) 
    139          WRITE(numout,*) ' smv_i      : ', smv_i(jiindex,jjindex,jl) 
    140          WRITE(numout,*) ' oa_i       : ', oa_i(jiindex,jjindex,jl) 
    141          WRITE(numout,*) 
    142       END DO 
    143 !+++++ 
    144  
    145 !------------------------------------------------------------------------------| 
    146 !  2) Melt ice laterally. 
    147 !------------------------------------------------------------------------------| 
    148 !     DO jm = 1, jpm 
    149 !        CALL lim_thd_lab(ice_cat_bounds(jm,1),ice_cat_bounds(jm,2)) 
    150 !     END DO 
    151 !     CALL lim_thd_lab 
    152  
    153112!------------------------------------------------------------------------------| 
    154113!  3) Add frazil ice growing in leads. 
     
    158117      CALL lim_var_glo2eqv ! only for info 
    159118 
    160 !+++++ 
    161       WRITE(numout,*) ' limthd_lac, new values ***** ' 
    162       DO jl = 1, jpl 
    163          WRITE(numout,*) '* - category number ', jl 
    164          WRITE(numout,*) ' a_i        : ', a_i(jiindex,jjindex,jl) 
    165          WRITE(numout,*) ' ht_i       : ', ht_i(jiindex,jjindex,jl) 
    166          WRITE(numout,*) ' v_i        : ', v_i(jiindex,jjindex,jl) 
    167          WRITE(numout,*) ' v_s        : ', v_s(jiindex,jjindex,jl) 
    168          WRITE(numout,*) ' e_i        : ', e_i(jiindex,jjindex,1:nlay_i,jl)/1.0e9 
    169          WRITE(numout,*) ' smv_i      : ', smv_i(jiindex,jjindex,jl) 
    170          WRITE(numout,*) ' t_su       : ', t_su(jiindex,jjindex,jl) 
    171          WRITE(numout,*) ' t_snow     : ', t_s(jiindex,jjindex,1,jl) 
    172          WRITE(numout,*) ' t_i        : ', t_i(jiindex,jjindex,1:nlay_i,jl) 
    173          WRITE(numout,*) 
    174       END DO 
    175 !+++++ 
    176119!---------------------------------------------------------------------------------------- 
    177120!  4) Computation of trend terms and get back to old values       
     
    230173        !!           (06-2006) Adaptation to include salt, age and types 
    231174        !!           (04-2007) Mass conservation checked 
    232         !! 
    233         !!                     Je suis d'humeur massacrante aujourd'hui, tout  
    234         !!                     le monde m'embete et m'empeche de coder 
    235         !! 
    236         !!                     Muere lentamente 
    237         !!                     quien evita una pasion y su remolino de emociones 
    238         !!                     justamente estas que regresan el brillo a los ojos 
    239         !!                     y restauran los corazones destrozados 
    240         !! 
    241175        !!------------------------------------------------------------------ 
    242176        !! * Arguments 
     
    250184       INTEGER ::   ji,       &   ! spatial dummy loop index 
    251185                    jj,       &   ! spatial dummy loop index 
    252                     jk,       &   ! vertical layering dummy loop index 
    253186                    jl,       &   ! ice category dummy loop index 
    254                     index,    &   ! for ice points 
    255187                    zji, zjj, &   ! dummy indices used when changing coordinates 
    256188                    nd            ! used for thickness categories 
     
    307239        
    308240       REAL(wp)  ::           &  ! constant values for ice enthalpy 
    309           zdummy, zdummy2,    & 
    310241          zslope                 ! used to compute local thermodynamic "speeds" 
    311242 
     
    337268!! 1) Compute thickness and changes in each ice category 
    338269!!---------------------------------------------------------------------------------------------- 
    339        IF(lwp) THEN 
    340          WRITE(numout,*) 
    341          WRITE(numout,*) 'lim_itd_th_rem : Remapping the ice thickness distribution' 
    342          WRITE(numout,*) '~~~~~~~~~~~~~~~' 
    343          WRITE(numout,*) '                klbnd :       ', klbnd 
    344          WRITE(numout,*) '                kubnd :       ', kubnd 
    345          WRITE(numout,*) '                ntyp  :       ', ntyp  
     270       IF (lwp) THEN 
     271       WRITE(numout,*) 
     272       WRITE(numout,*) 'lim_itd_th_rem : Remapping the ice thickness distribution' 
     273       WRITE(numout,*) '~~~~~~~~~~~~~~~' 
     274       WRITE(numout,*) ' klbnd :       ', klbnd 
     275       WRITE(numout,*) ' kubnd :       ', kubnd 
     276       WRITE(numout,*) ' ntyp  :       ', ntyp  
    346277       ENDIF 
    347  
    348 ! +++++ [ 
    349 !      index = 1 
    350 !      jiindex = arc_sp_grid(index,1) 
    351 !      jjindex = arc_sp_grid(index,2) 
    352 !      WRITE(numout,*) '*', arc_sp_acro(index), ' ', arc_sp_name(index) 
    353 !      WRITE(numout,*) 
    354 !      WRITE(numout,*) ' a_i        : ', a_i(jiindex,jjindex,klbnd:kubnd) 
    355 !      WRITE(numout,*) ' ht_i       : ', ht_i(jiindex,jjindex,klbnd:kubnd) 
    356 !      WRITE(numout,*) ' v_i        : ', v_i(jiindex,jjindex,klbnd:kubnd) 
    357 ! +++++ ] 
    358278 
    359279       zdhice(:,:,:) = 0.0 
     
    361281          DO jj = 1, jpj 
    362282             DO ji = 1, jpi 
    363  
    364283                zindb             = 1.0-MAX(0.0,SIGN(1.0,-a_i(ji,jj,jl)))     !0 if no ice and 1 if yes 
    365284                ht_i(ji,jj,jl)    = v_i(ji,jj,jl) / MAX(a_i(ji,jj,jl),zeps) * zindb 
     
    369288                   zdhice(ji,jj,jl) = ht_i(ji,jj,jl) - zht_i_o(ji,jj,jl)  
    370289                ENDIF 
    371  
    372290             END DO 
    373291          END DO 
    374292       END DO 
    375 !+++++ 
    376 !      WRITE(numout,*) ' 1 *** ' 
    377 !      WRITE(numout,*) ' klbnd -> kubnd ', klbnd, kubnd 
    378 !      WRITE(numout,*) 'ht_i   ', ht_i   (jiindex,jjindex,klbnd:kubnd) 
    379 !      WRITE(numout,*) 'zht_i_o', zht_i_o(jiindex,jjindex,klbnd:kubnd) 
    380 !      WRITE(numout,*) 'zdhice ', zdhice (jiindex,jjindex,klbnd:kubnd) 
    381 !+++++ 
    382293 
    383294!----------------------------------------------------------------------------------------------- 
     
    392303         END DO 
    393304      END DO 
    394  
    395 !+++++ 
    396 !     WRITE(numout,*) ' 2 *** ' 
    397 !     WRITE(numout,*) ' klbnd -> kubnd ', klbnd, kubnd 
    398 !     WRITE(numout,*) 'a_i    ', a_i   (jiindex,jjindex,klbnd:kubnd) 
    399 !     WRITE(numout,*) 'at_i   ', at_i  (jiindex,jjindex) 
    400 !+++++ 
    401305 
    402306!----------------------------------------------------------------------------------------------- 
     
    478382         ! ji 
    479383      END DO !jl 
    480 !+++++ 
    481 !     WRITE(numout,*) ' 4 *** ' 
    482 !     WRITE(numout,*) ' klbnd -> kubnd - 1 ', klbnd, kubnd - 1 
    483 !     WRITE(numout,*) ' hi_max ', hi_max(klbnd:kubnd-1) 
    484 !     WRITE(numout,*) ' zhbnew ', zhbnew(jiindex,jjindex,klbnd:kubnd-1) 
    485 !+++++ 
    486384             
    487385!----------------------------------------------------------------------------------------------- 
     
    521419     END DO !jj 
    522420 
    523 !+++++ 
    524 !    WRITE(numout,*) ' 6 *** ' 
    525 !    WRITE(numout,*) ' klbnd -1, kubnd ', klbnd - 1, kubnd  
    526 !    WRITE(numout,*) ' zhb0   ', zhb0(jiindex,jjindex) 
    527 !    WRITE(numout,*) ' zhb1   ', zhb1(jiindex,jjindex) 
    528 !    WRITE(numout,*) ' zhbnew klbnd-1 ', zhbnew(jiindex,jjindex,klbnd-1) 
    529 !    WRITE(numout,*) ' zhbnew kubnd   ', zhbnew(jiindex,jjindex,klbnd) 
    530 !+++++ 
    531  
    532421!----------------------------------------------------------------------------------------------- 
    533422!  7) Compute g(h)  
     
    537426                          g0(:,:,klbnd), g1(:,:,klbnd), hL(:,:,klbnd), & 
    538427                          hR(:,:,klbnd), zremap_flag) 
    539  
    540 !+++++ 
    541 !    WRITE(numout,*) ' 7a *** klbnd ', klbnd 
    542 !    WRITE(numout,*) ' g0(klbnd) ', g0(jiindex,jjindex,klbnd) 
    543 !    WRITE(numout,*) ' g1(klbnd) ', g1(jiindex,jjindex,klbnd) 
    544 !    WRITE(numout,*) ' hL(klbnd) ', hL(jiindex,jjindex,klbnd) 
    545 !    WRITE(numout,*) ' hR(klbnd) ', hR(jiindex,jjindex,klbnd) 
    546 !+++++ 
    547428 
    548429     !- 7.2 Area lost due to melting of thin ice (first category,  klbnd) 
     
    601482     END DO 
    602483 
    603 !+++++ 
    604 !    WRITE(numout,*) ' 7b *** klbnd->kubnd ', klbnd, kubnd 
    605 !    WRITE(numout,*) ' g0 ', g0(jiindex,jjindex,klbnd:kubnd) 
    606 !    WRITE(numout,*) ' g1 ', g1(jiindex,jjindex,klbnd:kubnd) 
    607 !    WRITE(numout,*) ' hL ', hL(jiindex,jjindex,klbnd:kubnd) 
    608 !    WRITE(numout,*) ' hR ', hR(jiindex,jjindex,klbnd:kubnd) 
    609 !    WRITE(numout,*) 
    610 !    WRITE(numout,*) ' ht_i ', ht_i(jiindex,jjindex,klbnd:kubnd) 
    611 !    WRITE(numout,*) ' a_i  ', a_i (jiindex,jjindex,klbnd:kubnd) 
    612 !    WRITE(numout,*) ' v_i  ', v_i (jiindex,jjindex,klbnd:kubnd) 
    613 !+++++ 
    614  
    615484!----------------------------------------------------------------------------------------------- 
    616485!  8) Compute area and volume to be shifted across each boundary 
     
    669538     CALL lim_itd_shiftice ( klbnd, kubnd, zdonor, zdaice, zdvice ) 
    670539 
    671 !    WRITE(numout,*) ' 9 *** ' 
    672 !    WRITE(numout,*) ' ht_i ', ht_i(jiindex,jjindex,klbnd:kubnd) 
    673 !    WRITE(numout,*) ' a_i  ', a_i (jiindex,jjindex,klbnd:kubnd) 
    674 !    WRITE(numout,*) ' v_i  ', v_i (jiindex,jjindex,klbnd:kubnd) 
    675  
    676540!!---------------------------------------------------------------------------------------------- 
    677541!! 10) Make sure ht_i >= minimum ice thickness hi_min 
     
    741605        !! authors: William H. Lipscomb, LANL, Elizabeth C. Hunke, LANL 
    742606        !!          (01-2006) Martin Vancoppenolle  
    743         !!          Au moment ou j'ecris ces lignes, je ne me rends pas  
    744         !!          compte du boulot que j'entame... un truc de malate comme 
    745         !!          on dit ici chez les Belches 
    746         !!          This routine was inspired from CICE (W.H. Lipscomb, E. Hunke, C. M. Bitz) 
    747         !!          the sea ice model of LANL, Los Alamos, USA.  
    748         !!          Thanks to these guys and their team to put their routines online 
    749607        !! 
    750608        !!------------------------------------------------------------------ 
     
    783641!!-- End of declarations 
    784642!!---------------------------------------------------------------------------------------------- 
    785        
    786 !     WRITE(numout,*) ' lim_itd_fitline : linearly fitting the function g(h) ' 
    787 !     WRITE(numout,*) ' ~~~~~~~~~~~~~~~   in category number ', num_cat 
    788643 
    789644      DO jj = 1, jpj 
     
    853708        !! authors: William H. Lipscomb, LANL, Elizabeth C. Hunke, LANL 
    854709        !!          (01-2006) Martin Vancoppenolle  
    855         !!          Et quand fatigues de s'etre souvenus 
    856         !!          Nos souvenirs fatigues ne seront plus que des loques... 
    857         !!          "!!! Il a attrape la ratatinette, l'epouvantable ratatinette" 
    858         !! 
    859         !!          This routine was largely inspired from CICE  
    860         !!          (W.H. Lipscomb, E. Hunke, C. M. Bitz) 
    861         !!          the sea ice model of LANL, Los Alamos, USA.  
    862         !!          Merci a eux et a leur equipe de mettre leurs routines en ligne 
    863         !!           
    864         !!          J'ajoute aujourd'hui : le secret de ma vie pour l'instant 
    865         !!          c'est de trouver la balance entre mon ego et l'absence d'ego 
    866         !!          balance entre respect des autres et respect de moi 
    867         !!          trouver comment realiser la compréhension de l'autre 
    868         !!          sans déclencher ma propre aliénation  
    869710        !! 
    870711        !!------------------------------------------------------------------ 
     
    887728         jl1,           &  ! donor category 
    888729         jk,            &  ! ice layer index 
    889          zji, zjj,      &  ! indices when changing from 2D-1D is done 
    890          index             ! for ice points referencing 
     730         zji, zjj          ! indices when changing from 2D-1D is done 
    891731 
    892732      REAL(wp), DIMENSION(jpi,jpj,jpl) :: & 
    893          zaTsfn,        & 
    894          zqsnow 
     733         zaTsfn 
    895734 
    896735      REAL(wp), DIMENSION(jpi,jpj) :: & 
     
    902741         zdeice      ,  &  ! ice energy transferred 
    903742         zdsm_vice      ,  &  ! ice salinity times volume transferred 
    904          zsm_v1      ,  &  ! ice salinity times volume 
    905          zsm_v2      ,  &  ! ice salinity times volume 
    906743         zdo_aice      ,  &  ! ice age times volume transferred 
    907          zo_v1       ,  &  ! ice age times volume  
    908          zo_v2       ,  &  ! ice age times volume  
    909744         zdaTsf      ,  &  ! aicen*Tsfcn transferred 
    910745         zindsn      ,  &  ! snow or not 
     
    928763 
    929764!!-- End of declarations 
    930 !      WRITE(numout,*) ' lim_itd_shiftice : shifting ice between categories ' 
    931 !      WRITE(numout,*) ' ~~~~~~~~~~~~~~~~ ' 
     765 
    932766!---------------------------------------------------------------------------------------------- 
    933767! 1) Define a variable equal to a_i*T_su 
     
    1024858      END DO !jl 
    1025859 
    1026       !----------------------------------------------------------------- 
    1027       ! error messages 
    1028       !----------------------------------------------------------------- 
    1029  
    1030 !        if (daice_negative) then 
    1031 !           do j = jlo,jhi 
    1032 !           do i = ilo,ihi 
    1033 !              if (donor(i,j,n) > 0 .and. daice(i,j,n) <= -puny) then 
    1034 !                 write(nu_diag,*) my_task,':',i,j, 
    1035 !    &                 'ITD Neg daice =',daice(i,j,n),' boundary',n 
    1036 !                 call abort_ice ('ice: ITD Neg daice') 
    1037 !              endif 
    1038 !           enddo 
    1039 !           enddo 
    1040 !        endif 
    1041  
    1042 !        if (dvice_negative) then 
    1043 !           do j = jlo,jhi 
    1044 !           do i = ilo,ihi 
    1045 !              if (donor(i,j,n) > 0 .and. dvice(i,j,n) <= -puny) then 
    1046 !                 write(nu_diag,*) my_task,':',i,j, 
    1047 !    &                 'ITD Neg dvice =',dvice(i,j,n),' boundary',n 
    1048 !                 call abort_ice ('ice: ITD Neg dvice') 
    1049 !              endif 
    1050 !           enddo 
    1051 !           enddo 
    1052 !        endif 
    1053  
    1054 !        if (daice_greater_aicen) then 
    1055 !           do j = jlo,jhi 
    1056 !           do i = ilo,ihi 
    1057 !              if (donor(i,j,n) > 0) then 
    1058 !                 n1 = donor(i,j,n) 
    1059 !                 if (daice(i,j,n) >= aicen(i,j,n1)+puny) then 
    1060 !                    write(nu_diag,*) my_task,':',i,j, 
    1061 !    &                    'ITD daice > aicen, cat',n1 
    1062 !                    write(nu_diag,*) my_task,':',i,j, 
    1063 !    &                    'daice =', daice(i,j,n), 
    1064 !    &                    'aicen =', aicen(i,j,n1) 
    1065 !                    call abort_ice ('ice: ITD daice > aicen') 
    1066 !                 endif 
    1067 !              endif 
    1068 !           enddo 
    1069 !           enddo 
    1070 !        endif 
    1071  
    1072 !        if (dvice_greater_vicen) then 
    1073 !           do j = jlo,jhi 
    1074 !           do i = ilo,ihi 
    1075 !              if (donor(i,j,n) > 0) then 
    1076 !                 n1 = donor(i,j,n) 
    1077 !                 if (dvice(i,j,n) >= vicen(i,j,n1)+puny) then 
    1078 !                    write(nu_diag,*) my_task,':',i,j, 
    1079 !    &                    'ITD dvice > vicen, cat',n1 
    1080 !                    write(nu_diag,*) my_task,':',i,j, 
    1081 !    &                    'dvice =', dvice(i,j,n), 
    1082 !    &                    'vicen =', vicen(i,j,n1) 
    1083 !                    call abort_ice ('ice: ITD dvice > vicen') 
    1084 !                 endif 
    1085 !              endif 
    1086 !           enddo 
    1087 !           enddo 
    1088 !        endif 
    1089  
    1090 !     enddo                     ! boundaries 1 to ncat-1 
    1091  
    1092860!------------------------------------------------------------------------------- 
    1093861! 3) Transfer volume and energy between categories 
     
    1210978               t_su(ji,jj,jl)  =  zaTsfn(ji,jj,jl) / a_i(ji,jj,jl)  
    1211979               zindsn          =  1.0 - MAX(0.0,SIGN(1.0,-v_s(ji,jj,jl))) !0 if no ice and 1 if yes 
    1212 !              t_s(ji,jj,1,jl) =  - zQsnow(ji,jj,jl) / MAX(v_s(ji,jj,jl),zeps) * zindsn + rtt 
    1213980            ELSE 
    1214981               ht_i(ji,jj,jl)  = 0.0 
    1215982               t_su(ji,jj,jl)  = rtt 
    1216 !              t_s(ji,jj,1,jl) = rtt 
    1217983            ENDIF 
    1218984         END DO                 ! ji 
     
    12461012        !! authors: William H. Lipscomb, LANL, Elizabeth C. Hunke, LANL 
    12471013        !!          (01-2006) Martin Vancoppenolle (adaptation) 
    1248         !! 
    1249         !!          Quel etre encore que celui-ci! Le Jugement Dernier sera la 
    1250         !!          avant qu'il vous fasse jamais une avance sur votre mois, 
    1251         !!          Seigneur! Tu peux supplier, te mettre en quatre, 
    1252         !!          meme si tu es dans la misere, il ne te donnera rien, 
    1253         !!          le vieux demon! Et quant on pense que, chez lui, 
    1254         !!          sa cuisiniere lui donne des gifles! Je ne vois pas l'interet 
    1255         !!          qu'il y a a travailler dans un ministere. Cela ne rapporte 
    1256         !!          absolument rien. 
    1257         !! 
    1258         !!          This routine was largely inspired from CICE  
    1259         !!          (W.H. Lipscomb, E. Hunke, C. M. Bitz) 
    1260         !!          the sea ice model of LANL, Los Alamos, USA.  
    12611014        !! 
    12621015        !!------------------------------------------------------------------ 
     
    12831036      REAL(wp)  ::           &  ! constant values 
    12841037         zeps      =  1.0e-10, & 
    1285          epsi10    =  1.0e-10, & 
    1286          zindb 
     1038         epsi10    =  1.0e-10 
    12871039 
    12881040      REAL (wp), DIMENSION(jpi,jpj) :: &  !  
     
    12941046!!-- End of declarations 
    12951047!------------------------------------------------------------------------------ 
    1296 !     WRITE(numout,*) ' lim_itd_th_reb ' 
    1297 !     WRITE(numout,*) ' ~~~~~~~~~~~~~~ ' 
    1298 !     WRITE(numout,*) ' Ice Type no    ', ntyp 
    1299 !     WRITE(numout,*) ' bounds of categories ', klbnd, kubnd 
    13001048 
    13011049!     ! conservation check 
    1302 !     CALL lim_column_sum (jpl,   v_i, vt_i_init) 
    1303 !     CALL lim_column_sum (jpl,   v_s, vt_s_init) 
     1050      IF ( con_i ) THEN 
     1051         CALL lim_column_sum (jpl,   v_i, vt_i_init) 
     1052         CALL lim_column_sum (jpl,   v_s, vt_s_init) 
     1053      ENDIF 
    13041054 
    13051055! 
     
    13071057! 1) Compute ice thickness. 
    13081058!------------------------------------------------------------------------------ 
    1309 ! nothing to do 
    13101059      DO jl = klbnd, kubnd 
    13111060         DO jj = 1, jpj 
     
    14471196!------------------------------------------------------------------------------ 
    14481197 
    1449 !   CALL lim_column_sum (jpl,   v_i, vt_i_final) 
    1450 !   fieldid = ' v_i : limitd_reb ' 
    1451 !   CALL lim_cons_check (vt_i_init, vt_i_final, 1.0e-6, fieldid)  
    1452  
    1453 !   CALL lim_column_sum (jpl,   v_s, vt_s_final) 
    1454 !   fieldid = ' v_s : limitd_reb ' 
    1455 !   CALL lim_cons_check (vt_s_init, vt_s_final, 1.0e-6, fieldid)  
     1198    IF ( con_i ) THEN 
     1199       CALL lim_column_sum (jpl,   v_i, vt_i_final) 
     1200       fieldid = ' v_i : limitd_reb ' 
     1201       CALL lim_cons_check (vt_i_init, vt_i_final, 1.0e-6, fieldid)  
     1202 
     1203       CALL lim_column_sum (jpl,   v_s, vt_s_final) 
     1204       fieldid = ' v_s : limitd_reb ' 
     1205       CALL lim_cons_check (vt_s_init, vt_s_final, 1.0e-6, fieldid)  
     1206    ENDIF 
    14561207 
    14571208    END SUBROUTINE lim_itd_th_reb 
Note: See TracChangeset for help on using the changeset viewer.