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

Ignore:
Timestamp:
2008-05-13T10:28:52+02:00 (16 years ago)
Author:
rblod
Message:

Correct indentation and print for debug in LIM3, see ticket #134, step I

File:
1 edited

Legend:

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

    r888 r921  
    5757CONTAINS 
    5858 
    59    SUBROUTINE lim_trp 
     59   SUBROUTINE lim_trp( kt )  
    6060      !!------------------------------------------------------------------- 
    6161      !!                   ***  ROUTINE lim_trp *** 
     
    7575      !!   3.0  !  05-11 (M. Vancoppenolle)   Multi-layer sea ice, salinity variations 
    7676      !!--------------------------------------------------------------------- 
     77      INTEGER, INTENT(in) ::   kt     ! number of iteration 
    7778      !! * Local Variables 
    7879      INTEGER  ::   ji, jj, jk, jl, layer, &  ! dummy loop indices 
    79                     initad           ! number of sub-timestep for the advection 
     80         initad           ! number of sub-timestep for the advection 
    8081      INTEGER  ::   ji_maxu, ji_maxv, jj_maxu, jj_maxv 
    8182 
     
    102103         zs0sm , zs0oi 
    103104 
    104 ! MHE Multilayer heat content 
     105      ! MHE Multilayer heat content 
    105106      REAL(wp), DIMENSION(jpi,jpj,jkmax,jpl)  ::   &  ! temporary workspace 
    106107         zs0e 
     
    111112 
    112113      zsm(:,:) = area(:,:) 
    113        
    114       IF( ln_limdyn ) THEN 
    115          WRITE(numout,*) 
    116          WRITE(numout,*) ' lim_trp : Ice Advection' 
    117          WRITE(numout,*) ' ~~~~~~~' 
    118  
    119 !-----------------------------------------------------------------------------! 
    120 ! 1) CFL Test                                                              
    121 !-----------------------------------------------------------------------------! 
     114 
     115      IF( ln_limdyn .AND. lwp ) THEN 
     116         IF( kt == nit000 ) THEN 
     117            WRITE(numout,*) ' lim_trp : Ice Advection' 
     118            WRITE(numout,*) ' ~~~~~~~' 
     119         ENDIF 
     120 
     121         !-----------------------------------------------------------------------------! 
     122         ! 1) CFL Test                                                              
     123         !-----------------------------------------------------------------------------! 
    122124 
    123125         !------------------------------------------ 
    124126         ! ice velocities at ocean U- and V-points  
    125127         !------------------------------------------ 
    126           
     128 
    127129         ! zvbord factor between 1 and 2 to take into account slip or no-slip boundary conditions.         
    128130         zvbord = 1.0 + ( 1.0 - bound ) 
     
    166168 
    167169         IF ( zcfl > 0.5 .AND. lwp ) & 
    168          WRITE(numout,*) 'lim_trp : violation of cfl criterion the ',nday,'th day, cfl = ',zcfl 
    169  
    170 !-----------------------------------------------------------------------------! 
    171 ! 2) Computation of transported fields                                         
    172 !-----------------------------------------------------------------------------! 
     170            WRITE(numout,*) 'lim_trp : violation of cfl criterion the ',nday,'th day, cfl = ',zcfl 
     171 
     172         !-----------------------------------------------------------------------------! 
     173         ! 2) Computation of transported fields                                         
     174         !-----------------------------------------------------------------------------! 
    173175 
    174176         !------------------------------------------------------ 
     
    185187            zs0oi (:,:,jl) =  oa_i (:,:,jl)  * area(:,:)    ! Age content 
    186188 
    187          !---------------------------------- 
    188          ! 1.2) Ice and snow heat contents 
    189          !---------------------------------- 
     189            !---------------------------------- 
     190            ! 1.2) Ice and snow heat contents 
     191            !---------------------------------- 
    190192 
    191193            zs0c0 (:,:,jl)     = e_s(:,:,1,jl)              ! Snow heat cont. 
     
    195197         END DO 
    196198 
    197 !-----------------------------------------------------------------------------! 
    198 ! 3) Advection of Ice fields                                               
    199 !-----------------------------------------------------------------------------! 
     199         !-----------------------------------------------------------------------------! 
     200         ! 3) Advection of Ice fields                                               
     201         !-----------------------------------------------------------------------------! 
    200202 
    201203         ! If ice drift field is too fast, use an appropriate time step for advection.          
    202204         initad = 1 + INT( MAX( rzero, SIGN( rone, zcfl-0.5 ) ) ) 
    203205         zusnit = 1.0 / REAL( initad )  
    204           
     206 
    205207         IF ( MOD( nday , 2 ) == 0) THEN 
    206208            DO jk = 1,initad 
    207209               !--- ice open water area 
    208210               CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0ow(:,:) , sxopw(:,:) , &  
    209                                                           sxxopw(:,:), syopw(:,:) , &  
    210                                                           syyopw(:,:), sxopw(:,:) ) 
     211                  sxxopw(:,:), syopw(:,:) , &  
     212                  syyopw(:,:), sxopw(:,:) ) 
    211213               CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0ow(:,:) , sxopw (:,:) , & 
    212                                                           sxxopw(:,:), syopw (:,:) , &  
    213                                                           syyopw(:,:), sxyopw(:,:) ) 
     214                  sxxopw(:,:), syopw (:,:) , &  
     215                  syyopw(:,:), sxyopw(:,:) ) 
    214216               DO jl = 1, jpl 
    215217                  !--- ice volume  --- 
    216218                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0ice(:,:,jl) , sxice (:,:,jl) , &  
    217                                                              sxxice(:,:,jl) , syice (:,:,jl) , &  
    218                                                              syyice(:,:,jl) , sxyice(:,:,jl) ) 
     219                     sxxice(:,:,jl) , syice (:,:,jl) , &  
     220                     syyice(:,:,jl) , sxyice(:,:,jl) ) 
    219221                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0ice(:,:,jl) , sxice (:,:,jl) , & 
    220                                                              sxxice(:,:,jl) , syice (:,:,jl) , &  
    221                                                              syyice(:,:,jl) , sxyice(:,:,jl) ) 
     222                     sxxice(:,:,jl) , syice (:,:,jl) , &  
     223                     syyice(:,:,jl) , sxyice(:,:,jl) ) 
    222224                  !--- snow volume  --- 
    223225                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0sn (:,:,jl) , sxsn  (:,:,jl) , & 
    224                                                              sxxsn (:,:,jl) , sysn  (:,:,jl) , & 
    225                                                              syysn (:,:,jl) , sxysn (:,:,jl) ) 
     226                     sxxsn (:,:,jl) , sysn  (:,:,jl) , & 
     227                     syysn (:,:,jl) , sxysn (:,:,jl) ) 
    226228                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0sn (:,:,jl) , sxsn  (:,:,jl) , & 
    227                                                              sxxsn (:,:,jl) , sysn  (:,:,jl) , & 
    228                                                              syysn (:,:,jl) , sxysn (:,:,jl) ) 
     229                     sxxsn (:,:,jl) , sysn  (:,:,jl) , & 
     230                     syysn (:,:,jl) , sxysn (:,:,jl) ) 
    229231                  !--- ice salinity --- 
    230232                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0sm (:,:,jl) , sxsal (:,:,jl) , & 
    231                                                              sxxsal(:,:,jl) , sysal (:,:,jl) , & 
    232                                                              syysal(:,:,jl) , sxysal(:,:,jl)  ) 
     233                     sxxsal(:,:,jl) , sysal (:,:,jl) , & 
     234                     syysal(:,:,jl) , sxysal(:,:,jl)  ) 
    233235                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0sm (:,:,jl) , sxsal (:,:,jl) , & 
    234                                                              sxxsal(:,:,jl) , sysal (:,:,jl) , & 
    235                                                              syysal(:,:,jl) , sxysal(:,:,jl)  ) 
     236                     sxxsal(:,:,jl) , sysal (:,:,jl) , & 
     237                     syysal(:,:,jl) , sxysal(:,:,jl)  ) 
    236238                  !--- ice age      ---      
    237239                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0oi (:,:,jl) , sxage (:,:,jl) , & 
    238                                                              sxxage(:,:,jl) , syage (:,:,jl) , & 
    239                                                              syyage(:,:,jl) , sxyage(:,:,jl)  ) 
     240                     sxxage(:,:,jl) , syage (:,:,jl) , & 
     241                     syyage(:,:,jl) , sxyage(:,:,jl)  ) 
    240242                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0oi (:,:,jl) , sxage (:,:,jl) , & 
    241                                                              sxxage(:,:,jl) , syage (:,:,jl) , & 
    242                                                              syyage(:,:,jl) , sxyage(:,:,jl)  ) 
     243                     sxxage(:,:,jl) , syage (:,:,jl) , & 
     244                     syyage(:,:,jl) , sxyage(:,:,jl)  ) 
    243245                  !--- ice concentrations --- 
    244246                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0a  (:,:,jl) , sxa   (:,:,jl) , & 
    245                                                              sxxa  (:,:,jl) , sya   (:,:,jl) , &  
    246                                                              syya  (:,:,jl) , sxya  (:,:,jl)  ) 
     247                     sxxa  (:,:,jl) , sya   (:,:,jl) , &  
     248                     syya  (:,:,jl) , sxya  (:,:,jl)  ) 
    247249                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0a  (:,:,jl) , sxa   (:,:,jl) , &  
    248                                                              sxxa  (:,:,jl) , sya   (:,:,jl) , &  
    249                                                              syya  (:,:,jl) , sxya  (:,:,jl)  ) 
     250                     sxxa  (:,:,jl) , sya   (:,:,jl) , &  
     251                     syya  (:,:,jl) , sxya  (:,:,jl)  ) 
    250252                  !--- ice / snow thermal energetic contents --- 
    251253                  CALL lim_adv_x( zusnit, zui_u, rone , zsm, zs0c0 (:,:,jl) , sxc0  (:,:,jl) , &  
    252                                                              sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
    253                                                              syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
     254                     sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
     255                     syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
    254256                  CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, zs0c0 (:,:,jl) , sxc0  (:,:,jl) , & 
    255                                                              sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
    256                                                              syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
     257                     sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
     258                     syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
    257259                  DO layer = 1, nlay_i 
    258260                     CALL lim_adv_x( zusnit, zui_u, rone , zsm, & 
    259                                                              zs0e(:,:,layer,jl) , sxe (:,:,layer,jl) , &  
    260                                                              sxxe(:,:,layer,jl) , sye (:,:,layer,jl) , & 
    261                                                              syye(:,:,layer,jl) , sxye(:,:,layer,jl) ) 
     261                        zs0e(:,:,layer,jl) , sxe (:,:,layer,jl) , &  
     262                        sxxe(:,:,layer,jl) , sye (:,:,layer,jl) , & 
     263                        syye(:,:,layer,jl) , sxye(:,:,layer,jl) ) 
    262264                     CALL lim_adv_y( zusnit, zvi_v, rzero, zsm, &  
    263                                                              zs0e(:,:,layer,jl) , sxe (:,:,layer,jl) , &  
    264                                                              sxxe(:,:,layer,jl) , sye (:,:,layer,jl) , & 
    265                                                              syye(:,:,layer,jl) , sxye(:,:,layer,jl) ) 
     265                        zs0e(:,:,layer,jl) , sxe (:,:,layer,jl) , &  
     266                        sxxe(:,:,layer,jl) , sye (:,:,layer,jl) , & 
     267                        syye(:,:,layer,jl) , sxye(:,:,layer,jl) ) 
    266268                  END DO 
    267269               END DO 
     
    271273               !--- ice volume  --- 
    272274               CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0ow (:,:) , sxopw (:,:) , & 
    273                                                           sxxopw(:,:) , syopw (:,:) , &  
    274                                                           syyopw(:,:) , sxyopw(:,:) ) 
     275                  sxxopw(:,:) , syopw (:,:) , &  
     276                  syyopw(:,:) , sxyopw(:,:) ) 
    275277               CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0ow (:,:) , sxopw (:,:) , &  
    276                                                           sxxopw(:,:) , syopw (:,:) , & 
    277                                                           syyopw(:,:) , sxyopw(:,:) ) 
     278                  sxxopw(:,:) , syopw (:,:) , & 
     279                  syyopw(:,:) , sxyopw(:,:) ) 
    278280               DO jl = 1, jpl 
    279281                  !--- ice volume  --- 
    280282                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0ice(:,:,jl) , sxice (:,:,jl) , & 
    281                                                              sxxice(:,:,jl) , syice (:,:,jl) , &  
    282                                                              syyice(:,:,jl) , sxyice(:,:,jl) ) 
     283                     sxxice(:,:,jl) , syice (:,:,jl) , &  
     284                     syyice(:,:,jl) , sxyice(:,:,jl) ) 
    283285                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0ice(:,:,jl) , sxice (:,:,jl) , &  
    284                                                              sxxice(:,:,jl) , syice (:,:,jl) , & 
    285                                                              syyice(:,:,jl) , sxyice(:,:,jl) ) 
     286                     sxxice(:,:,jl) , syice (:,:,jl) , & 
     287                     syyice(:,:,jl) , sxyice(:,:,jl) ) 
    286288                  !--- snow volume  --- 
    287289                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0sn (:,:,jl) , sxsn  (:,:,jl) , &  
    288                                                              sxxsn (:,:,jl) , sysn  (:,:,jl) , &  
    289                                                              syysn (:,:,jl) , sxysn (:,:,jl) ) 
     290                     sxxsn (:,:,jl) , sysn  (:,:,jl) , &  
     291                     syysn (:,:,jl) , sxysn (:,:,jl) ) 
    290292                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0sn (:,:,jl) , sxsn  (:,:,jl) , &  
    291                                                              sxxsn (:,:,jl) , sysn  (:,:,jl) , &  
    292                                                              syysn (:,:,jl) , sxysn (:,:,jl) ) 
     293                     sxxsn (:,:,jl) , sysn  (:,:,jl) , &  
     294                     syysn (:,:,jl) , sxysn (:,:,jl) ) 
    293295                  !--- ice salinity --- 
    294296                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0sm (:,:,jl) , sxsal (:,:,jl) , & 
    295                                                              sxxsal(:,:,jl) , sysal (:,:,jl) , & 
    296                                                              syysal(:,:,jl) , sxysal(:,:,jl) ) 
     297                     sxxsal(:,:,jl) , sysal (:,:,jl) , & 
     298                     syysal(:,:,jl) , sxysal(:,:,jl) ) 
    297299                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0sm (:,:,jl) , sxsal (:,:,jl) , & 
    298                                                              sxxsal(:,:,jl) , sysal (:,:,jl) , & 
    299                                                              syysal(:,:,jl) , sxysal(:,:,jl) ) 
     300                     sxxsal(:,:,jl) , sysal (:,:,jl) , & 
     301                     syysal(:,:,jl) , sxysal(:,:,jl) ) 
    300302                  !--- ice age      --- 
    301303                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0oi (:,:,jl) , sxage (:,:,jl) , & 
    302                                                              sxxage(:,:,jl) , syage (:,:,jl) , &  
    303                                                              syyage(:,:,jl) , sxyage(:,:,jl)  ) 
     304                     sxxage(:,:,jl) , syage (:,:,jl) , &  
     305                     syyage(:,:,jl) , sxyage(:,:,jl)  ) 
    304306                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0oi (:,:,jl) , sxage (:,:,jl) , & 
    305                                                              sxxage(:,:,jl) , syage (:,:,jl) , & 
    306                                                              syyage(:,:,jl) , sxyage(:,:,jl)   ) 
     307                     sxxage(:,:,jl) , syage (:,:,jl) , & 
     308                     syyage(:,:,jl) , sxyage(:,:,jl)   ) 
    307309                  !--- ice concentration --- 
    308310                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0a  (:,:,jl) , sxa   (:,:,jl) , &  
    309                                                              sxxa  (:,:,jl) , sya   (:,:,jl) , &  
    310                                                              syya  (:,:,jl) , sxya  (:,:,jl)  ) 
     311                     sxxa  (:,:,jl) , sya   (:,:,jl) , &  
     312                     syya  (:,:,jl) , sxya  (:,:,jl)  ) 
    311313                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0a  (:,:,jl) , sxa   (:,:,jl) , &  
    312                                                              sxxa  (:,:,jl) , sya   (:,:,jl) , &  
    313                                                              syya  (:,:,jl) , sxya  (:,:,jl)  ) 
     314                     sxxa  (:,:,jl) , sya   (:,:,jl) , &  
     315                     syya  (:,:,jl) , sxya  (:,:,jl)  ) 
    314316                  !--- ice / snow thermal energetic contents --- 
    315317                  CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0c0 (:,:,jl) , sxc0  (:,:,jl) , &  
    316                                                              sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
    317                                                              syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
     318                     sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
     319                     syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
    318320                  CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0c0 (:,:,jl) , sxc0  (:,:,jl) , & 
    319                                                              sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
    320                                                              syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
     321                     sxxc0 (:,:,jl) , syc0  (:,:,jl) , & 
     322                     syyc0 (:,:,jl) , sxyc0 (:,:,jl)  ) 
    321323                  DO layer = 1, nlay_i 
    322324                     CALL lim_adv_y( zusnit, zvi_v, rone , zsm, zs0e(:,:,layer,jl) , & 
    323                                      sxe (:,:,layer,jl) , sxxe (:,:,layer,jl) , sye (:,:,layer,jl) , & 
    324                                      syye (:,:,layer,jl), sxye (:,:,layer,jl) ) 
     325                        sxe (:,:,layer,jl) , sxxe (:,:,layer,jl) , sye (:,:,layer,jl) , & 
     326                        syye (:,:,layer,jl), sxye (:,:,layer,jl) ) 
    325327                     CALL lim_adv_x( zusnit, zui_u, rzero, zsm, zs0e(:,:,layer,jl) , & 
    326                                      sxe (:,:,layer,jl) , sxxe (:,:,layer,jl) , sye (:,:,layer,jl) , & 
    327                                      syye (:,:,layer,jl), sxye (:,:,layer,jl)  ) 
     328                        sxe (:,:,layer,jl) , sxxe (:,:,layer,jl) , sye (:,:,layer,jl) , & 
     329                        syye (:,:,layer,jl), sxye (:,:,layer,jl)  ) 
    328330                  END DO 
    329331 
     
    349351         END DO 
    350352 
    351 !------------------------------------------------------------------------------! 
    352 ! 4) Diffusion of Ice fields                   
    353 !------------------------------------------------------------------------------! 
    354  
    355       !------------------------------------ 
    356       ! 4.1) diffusion of open water area 
    357       !------------------------------------ 
     353         !------------------------------------------------------------------------------! 
     354         ! 4) Diffusion of Ice fields                   
     355         !------------------------------------------------------------------------------! 
     356 
     357         !------------------------------------ 
     358         ! 4.1) diffusion of open water area 
     359         !------------------------------------ 
    358360 
    359361         ! Compute total ice fraction 
     
    364366                  zs0at (ji,jj) = zs0at(ji,jj) + zs0a(ji,jj,jl) ! 
    365367               END DO 
    366             END DO  
     368            END DO 
    367369         END DO 
    368370 
     
    380382         CALL lim_hdf( zs0ow (:,:) ) 
    381383 
    382       !---------------------------------------- 
    383       ! 4.2) Diffusion of other ice variables 
    384       !---------------------------------------- 
    385          DO jl = 1, jpl 
    386  
    387          ! Masked eddy diffusivity coefficient at ocean U- and V-points 
     384         !---------------------------------------- 
     385         ! 4.2) Diffusion of other ice variables 
     386         !---------------------------------------- 
     387         DO jl = 1, jpl 
     388 
     389            ! Masked eddy diffusivity coefficient at ocean U- and V-points 
    388390            DO jj = 1, jpjm1          ! NB: has not to be defined on jpj line and jpi row 
    389391               DO ji = 1 , fs_jpim1   ! vector opt. 
     
    406408         END DO !jl 
    407409 
    408       !----------------------------------------- 
    409       ! 4.3) Remultiply everything by ice area 
    410       !----------------------------------------- 
     410         !----------------------------------------- 
     411         ! 4.3) Remultiply everything by ice area 
     412         !----------------------------------------- 
    411413         zs0ow(:,:) = MAX(rzero, zs0ow(:,:) * area(:,:) ) 
    412414         DO jl = 1, jpl 
     
    422424         END DO ! jl 
    423425 
    424 !------------------------------------------------------------------------------! 
    425 ! 5) Update and limit ice properties after transport                            
    426 !------------------------------------------------------------------------------! 
    427  
    428       !-------------------------------------------------- 
    429       ! 5.1) Recover mean values over the grid squares. 
    430       !-------------------------------------------------- 
     426         !------------------------------------------------------------------------------! 
     427         ! 5) Update and limit ice properties after transport                            
     428         !------------------------------------------------------------------------------! 
     429 
     430         !-------------------------------------------------- 
     431         ! 5.1) Recover mean values over the grid squares. 
     432         !-------------------------------------------------- 
    431433 
    432434         DO jl = 1, jpl 
     
    435437                  DO ji = 1, jpi 
    436438                     zs0e (ji,jj,jk,jl) =  & 
    437                      MAX( rzero, zs0e (ji,jj,jk,jl) / area(ji,jj) ) 
     439                        MAX( rzero, zs0e (ji,jj,jk,jl) / area(ji,jj) ) 
    438440                  END DO 
    439441               END DO 
     
    446448            END DO 
    447449         END DO 
    448           
     450 
    449451         zs0at(:,:) = 0.0 
    450452         DO jl = 1, jpl 
     
    462464         END DO 
    463465 
    464       !--------------------------------------------------------- 
    465       ! 5.2) Snow thickness, Ice thickness, Ice concentrations 
    466       !--------------------------------------------------------- 
     466         !--------------------------------------------------------- 
     467         ! 5.2) Snow thickness, Ice thickness, Ice concentrations 
     468         !--------------------------------------------------------- 
    467469 
    468470         DO jj = 1, jpj 
     
    501503         END DO 
    502504 
    503       !---------------------- 
    504       ! 5.3) Ice properties 
    505       !---------------------- 
     505         !---------------------- 
     506         ! 5.3) Ice properties 
     507         !---------------------- 
    506508 
    507509         zbigval         =  1.0d+13 
     
    521523                  ! Ice salinity and age 
    522524                  zsal            = MAX( MIN( (rhoic-rhosn)/rhoic*sss_m(ji,jj)  , & 
    523                                             zusvoic * zs0sm(ji,jj,jl) ), s_i_min ) * & 
    524                                             v_i(ji,jj,jl) 
     525                     zusvoic * zs0sm(ji,jj,jl) ), s_i_min ) * & 
     526                     v_i(ji,jj,jl) 
    525527                  IF ( ( num_sal .EQ. 2 ) .OR. ( num_sal .EQ. 4 ) ) &  
    526528                     smv_i(ji,jj,jl) = zindic*zsal + (1.0-zindic)*0.0 
    527529 
    528530                  zage            = MAX( MIN( zbigval, zs0oi(ji,jj,jl) / &  
    529                                               MAX( a_i(ji,jj,jl), epsi16 )  ), 0.0 ) * & 
    530                                               a_i(ji,jj,jl) 
     531                     MAX( a_i(ji,jj,jl), epsi16 )  ), 0.0 ) * & 
     532                     a_i(ji,jj,jl) 
    531533                  oa_i (ji,jj,jl)  = zindic*zage  
    532534 
     
    616618         WRITE(numout,*)  
    617619      ENDIF 
    618              
     620 
    619621   END SUBROUTINE lim_trp_init 
    620622 
Note: See TracChangeset for help on using the changeset viewer.