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_ent.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_ent.F90

    r8424 r8486  
    1515#if defined key_lim3 
    1616   !!---------------------------------------------------------------------- 
    17    !!   'key_lim3'                                      LIM3 sea-ice model 
     17   !!   'key_lim3'                                       LIM3 sea-ice model 
    1818   !!---------------------------------------------------------------------- 
    1919   !!   ice_thd_ent   : ice redistribution of enthalpy 
     
    3636 
    3737   !!---------------------------------------------------------------------- 
    38    !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) 
     38   !! NEMO/ICE 4.0 , NEMO Consortium (2017) 
    3939   !! $Id: icethd_ent.F90 8420 2017-08-08 12:18:46Z clem $ 
    4040   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    8686            zeh_cum0(ji,jk0) = zeh_cum0(ji,jk0-1) + eh_i_old(ji,jk0-1) 
    8787            zh_cum0 (ji,jk0) = zh_cum0 (ji,jk0-1) + h_i_old (ji,jk0-1) 
    88          ENDDO 
    89       ENDDO 
     88         END DO 
     89      END DO 
    9090 
    9191      !------------------------------------ 
     
    9595      DO ji = 1, nidx 
    9696         zhnew(ji) = SUM( h_i_old(ji,0:nlay_i+1) ) * r1_nlay_i   
    97       ENDDO 
     97      END DO 
    9898 
    9999      ! new layers interfaces 
     
    102102         DO ji = 1, nidx 
    103103            zh_cum1(ji,jk1) = zh_cum1(ji,jk1-1) + zhnew(ji) 
    104          ENDDO 
    105       ENDDO 
     104         END DO 
     105      END DO 
    106106 
    107107      zeh_cum1(:,0:nlay_i) = 0._wp  
     
    115115                     &             / ( zh_cum0(ji,jk0) - zh_cum0(ji,jk0-1) ) 
    116116               ENDIF 
    117             ENDDO 
    118          ENDDO 
    119       ENDDO 
     117            END DO 
     118         END DO 
     119      END DO 
    120120      ! to ensure that total heat content is strictly conserved, set: 
    121121      zeh_cum1(:,nlay_i) = zeh_cum0(:,nlay_i+2)  
     
    126126            rswitch      = MAX( 0._wp , SIGN( 1._wp , zhnew(ji) - epsi20 ) )  
    127127            qnew(ji,jk1) = rswitch * ( zeh_cum1(ji,jk1) - zeh_cum1(ji,jk1-1) ) / MAX( zhnew(ji), epsi20 ) 
    128          ENDDO 
    129       ENDDO 
     128         END DO 
     129      END DO 
    130130 
    131131      ! --- diag error on heat remapping --- ! 
     
    143143   !!   Default option                               NO  LIM3 sea-ice model 
    144144   !!---------------------------------------------------------------------- 
    145 CONTAINS 
    146    SUBROUTINE ice_thd_ent          ! Empty routine 
    147    END SUBROUTINE ice_thd_ent 
    148145#endif 
    149146 
Note: See TracChangeset for help on using the changeset viewer.