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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/ICE/icethd_pnd.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/ICE/icethd_pnd.F90

    • Property svn:keywords set to Id
    r9750 r10288  
    4242   !!---------------------------------------------------------------------- 
    4343   !! NEMO/ICE 4.0 , NEMO Consortium (2018) 
    44    !! $Id: icethd_pnd.F90 8420 2017-10-05 13:07:10Z clem $ 
    45    !! Software governed by the CeCILL licence     (./LICENSE) 
     44   !! $Id$ 
     45   !! Software governed by the CeCILL license (see ./LICENSE) 
    4646   !!---------------------------------------------------------------------- 
    4747CONTAINS 
     
    133133      REAL(wp) ::   zdv_mlt          ! available meltwater for melt ponding 
    134134      REAL(wp) ::   z1_Tp            ! inverse reference temperature 
    135       REAL(wp) ::   z1_rhofw         ! inverse freshwater density 
     135      REAL(wp) ::   z1_rhow          ! inverse freshwater density 
    136136      REAL(wp) ::   z1_zpnd_aspect   ! inverse pond aspect ratio 
    137137      REAL(wp) ::   zfac, zdum 
     
    139139      INTEGER  ::   ji   ! loop indices 
    140140      !!------------------------------------------------------------------- 
    141       z1_rhofw       = 1._wp / rhofw  
     141      z1_rhow        = 1._wp / rhow  
    142142      z1_zpnd_aspect = 1._wp / zpnd_aspect 
    143143      z1_Tp          = 1._wp / zTp  
     
    157157            ! 
    158158            ! available meltwater for melt ponding [m, >0] and fraction 
    159             zdv_mlt = -( dh_i_sum(ji)*rhoic + dh_s_mlt(ji)*rhosn ) * z1_rhofw * a_i_1d(ji) 
     159            zdv_mlt = -( dh_i_sum(ji)*rhoi + dh_s_mlt(ji)*rhos ) * z1_rhow * a_i_1d(ji) 
    160160            zfr_mlt = zrmin + ( zrmax - zrmin ) * a_i_1d(ji)  ! from CICE doc 
    161161            !zfr_mlt = zrmin + zrmax * a_i_1d(ji)             ! from Holland paper  
     
    163163            !--- Pond gowth ---! 
    164164            ! v_ip should never be negative, otherwise code crashes 
    165             ! MV: as far as I saw, UM5 can create very small negative v_ip values (not Prather) 
    166165            v_ip_1d(ji) = MAX( 0._wp, v_ip_1d(ji) + zfr_mlt * zdv_mlt ) 
    167166            ! 
    168167            ! melt pond mass flux (<0) 
    169168            IF( ln_pnd_fwb .AND. zdv_mlt > 0._wp ) THEN 
    170                zfac = zfr_mlt * zdv_mlt * rhofw * r1_rdtice 
     169               zfac = zfr_mlt * zdv_mlt * rhow * r1_rdtice 
    171170               wfx_pnd_1d(ji) = wfx_pnd_1d(ji) - zfac 
    172171               ! 
Note: See TracChangeset for help on using the changeset viewer.