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

Ignore:
Timestamp:
2017-09-01T15:49:35+02:00 (7 years ago)
Author:
clem
Message:

changes in style - part1 - (now the code looks better txs to Gurvan's comments)

File:
1 edited

Legend:

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

    r8422 r8486  
    1212#if defined key_lim3 
    1313   !!---------------------------------------------------------------------- 
    14    !!   'key_lim3'                                      LIM3 sea-ice model 
     14   !!   'key_lim3'                                       LIM3 sea-ice model 
    1515   !!---------------------------------------------------------------------- 
    1616   !!   ice_thd_dh    : vertical accr./abl. and lateral ablation of sea ice 
     
    3636 
    3737   !!---------------------------------------------------------------------- 
    38    !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2010) 
     38   !! NEMO/ICE 4.0 , NEMO Consortium (2017) 
    3939   !! $Id: icethd_dh.F90 8420 2017-08-08 12:18:46Z clem $ 
    4040   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    6666      !!              Vancoppenolle et al.,2009, Ocean Modelling 
    6767      !!------------------------------------------------------------------ 
    68       INTEGER  ::   ji , jk        ! dummy loop indices 
    69       INTEGER  ::   iter 
    70  
    71       REAL(wp) ::   ztmelts             ! local scalar 
     68      INTEGER  ::   ji, jk       ! dummy loop indices 
     69      INTEGER  ::   iter         ! local integer 
     70 
     71      REAL(wp) ::   ztmelts      ! local scalar 
    7272      REAL(wp) ::   zdum        
    7373      REAL(wp) ::   zfracs       ! fractionation coefficient for bottom salt entrapment 
     
    104104      REAL(wp) :: zswitch_sal 
    105105 
    106       ! Heat conservation  
    107       INTEGER  ::   num_iter_max 
     106      INTEGER  ::   num_iter_max      ! Heat conservation  
    108107      !!------------------------------------------------------------------ 
    109108 
    110109      ! Discriminate between varying salinity (nn_icesal=2) and prescribed cases (other values) 
    111110      SELECT CASE( nn_icesal )                  ! varying salinity or not 
    112          CASE( 1, 3 ) ;   zswitch_sal = 0._wp   ! prescribed salinity profile 
    113          CASE( 2 )    ;   zswitch_sal = 1._wp   ! varying salinity profile 
     111         CASE( 1, 3 )   ;   zswitch_sal = 0._wp   ! prescribed salinity profile 
     112         CASE( 2 )      ;   zswitch_sal = 1._wp   ! varying salinity profile 
    114113      END SELECT 
    115114 
     
    127126            h_i_old (ji,jk) = ht_i_1d(ji) * r1_nlay_i 
    128127            eh_i_old(ji,jk) = e_i_1d(ji,jk) * h_i_old(ji,jk) 
    129          ENDDO 
    130       ENDDO 
     128         END DO 
     129      END DO 
    131130      ! 
    132131      !------------------------------------------------------------------------------! 
     
    142141      END DO 
    143142 
    144       ! 
    145143      !------------------------------------------------------------------------------! 
    146144      ! If snow temperature is above freezing point, then snow melts  
     
    163161      !  2) Computing layer thicknesses and enthalpies.            ! 
    164162      !------------------------------------------------------------! 
    165       ! 
    166163      DO jk = 1, nlay_i 
    167164         DO ji = 1, nidx 
     
    170167         END DO 
    171168      END DO 
    172       ! 
     169 
    173170      !------------------------------------------------------------------------------| 
    174171      !  3) Surface ablation and sublimation                                         | 
     
    389386      END DO 
    390387 
    391       ! 
     388 
    392389      !------------------------------------------------------------------------------! 
    393390      ! 4) Basal growth / melt                                                       ! 
     
    664661   !! ** Purpose :   Compute distribution of precip over the ice 
    665662   !!-------------------------------------------------------------------------- 
     663!!gm  I think it can be usefull to set this as a FUNCTION, not a SUBROUTINE.... 
    666664   SUBROUTINE ice_thd_snwblow_2d( pin, pout ) 
    667665      REAL(wp), DIMENSION(:,:), INTENT(in   ) :: pin   ! previous fraction lead ( 1. - a_i_b ) 
     
    676674   END SUBROUTINE ice_thd_snwblow_1d 
    677675 
    678     
    679676#else 
    680677   !!---------------------------------------------------------------------- 
    681678   !!   Default option                               NO  LIM3 sea-ice model 
    682679   !!---------------------------------------------------------------------- 
    683 CONTAINS 
    684    SUBROUTINE ice_thd_dh          ! Empty routine 
    685    END SUBROUTINE ice_thd_dh 
    686680#endif 
    687681 
Note: See TracChangeset for help on using the changeset viewer.