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 8378 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90 – NEMO

Ignore:
Timestamp:
2017-07-26T15:55:59+02:00 (7 years ago)
Author:
clem
Message:

some cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90

    r8373 r8378  
    4242   USE lbclnk         ! lateral boundary condition - MPP links 
    4343   USE lib_mpp        ! MPP library 
    44    USE wrk_nemo       ! work arrays 
    4544   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)   
    4645   USE timing         ! Timing 
     
    234233         IF( nidx > 0 ) THEN  ! If there is no ice, do nothing. 
    235234            !                                                                 
    236             s_i_new   (1:nidx) = 0._wp ; dh_s_tot (1:nidx) = 0._wp  ! --- some init --- ! 
    237             dh_i_surf (1:nidx) = 0._wp ; dh_i_bott(1:nidx) = 0._wp 
    238             dh_snowice(1:nidx) = 0._wp ; dh_i_sub (1:nidx) = 0._wp 
    239  
    240235                              CALL lim_thd_1d2d( jl, 1 )            ! --- Move to 1D arrays --- ! 
    241236            ! 
     
    246241               WHERE( ht_s_1d(1:nidx)>0._wp ) e_s_1d(1:nidx,jk) = e_s_1d(1:nidx,jk) / (ht_s_1d(1:nidx) * a_i_1d(1:nidx)) * nlay_s 
    247242            ENDDO 
     243            ! 
     244            s_i_new   (1:nidx) = 0._wp ; dh_s_tot (1:nidx) = 0._wp  ! --- some init --- !  (important to have them here)  
     245            dh_i_surf (1:nidx) = 0._wp ; dh_i_bott(1:nidx) = 0._wp 
     246            dh_snowice(1:nidx) = 0._wp ; dh_i_sub (1:nidx) = 0._wp 
    248247            ! 
    249248            IF( ln_limdH )    CALL lim_thd_dif                      ! --- Ice/Snow Temperature profile --- ! 
Note: See TracChangeset for help on using the changeset viewer.