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

Ignore:
Timestamp:
2017-09-25T21:11:19+02:00 (7 years ago)
Author:
clem
Message:

cosmetics only

File:
1 edited

Legend:

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

    r8559 r8562  
    116116      END SELECT 
    117117 
    118       DO ji = 1, nidx 
    119          icount (ji,:) = 0 
    120          zdh_s_mel(ji) = 0._wp 
    121          e_i_1d(ji,nlay_i+1) = 0._wp ! Initialize enthalpy at nlay_i+1 
    122       END DO 
    123  
    124118      ! initialize layer thicknesses and enthalpies 
    125119      h_i_old (1:nidx,0:nlay_i+1) = 0._wp 
     
    227221      ! If heat still available (zq_su > 0), then melt more snow 
    228222      zdeltah(1:nidx,:) = 0._wp 
     223      zdh_s_mel(1:nidx) = 0._wp 
    229224      DO jk = 1, nlay_s 
    230225         DO ji = 1, nidx 
     
    443438 
    444439               dh_i_bott(ji)      = rdt_ice * MAX( 0._wp , zf_tt(ji) / ( zdE * rhoic ) ) 
    445  
    446                e_i_1d(ji,nlay_i+1) = -zEi * rhoic                        ! New ice energy of melting (J/m3, >0) 
    447440                
    448441            END DO 
     
    475468 
    476469            ! update heat content (J.m-2) and layer thickness 
    477             eh_i_old(ji,nlay_i+1) = eh_i_old(ji,nlay_i+1) + dh_i_bott(ji) * e_i_1d(ji,nlay_i+1) 
     470            eh_i_old(ji,nlay_i+1) = eh_i_old(ji,nlay_i+1) + dh_i_bott(ji) * (-zEi * rhoic) 
    478471            h_i_old (ji,nlay_i+1) = h_i_old (ji,nlay_i+1) + dh_i_bott(ji) 
    479472 
     
    654647 
    655648      ! --- ensure that a_i = 0 where ht_i = 0 --- 
    656       DO ji = 1, nidx 
    657          IF( ht_i_1d(ji) == 0._wp )   a_i_1d(ji) = 0._wp 
    658       END DO          
     649      WHERE( ht_i_1d(1:nidx) == 0._wp )   a_i_1d(1:nidx) = 0._wp 
    659650      ! 
    660651   END SUBROUTINE ice_thd_dh 
Note: See TracChangeset for help on using the changeset viewer.