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 8098 for branches/2016/dev_r6859_LIM3_meltponds/NEMOGCM/NEMO/LIM_SRC_3/limistate.F90 – NEMO

Ignore:
Timestamp:
2017-05-30T13:17:53+02:00 (7 years ago)
Author:
vancop
Message:

Further melt pond work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6859_LIM3_meltponds/NEMOGCM/NEMO/LIM_SRC_3/limistate.F90

    r8085 r8098  
    8888      REAL(wp)   :: ztmelts, zdh 
    8989      INTEGER    :: i_hemis, i_fill, jl0 
    90       REAL(wp)   :: zarg, zV, zconv, zdv, z1_jpl  
     90      REAL(wp)   :: zarg, zV, zconv, zdv 
    9191      REAL(wp), POINTER, DIMENSION(:,:)   :: zswitch    ! ice indicator 
    9292      REAL(wp), POINTER, DIMENSION(:,:)   :: zht_i_ini, zat_i_ini, zvt_i_ini            !data from namelist or nc file 
     
    380380         ! MV MP 2016 
    381381         ! Melt pond volume and fraction 
    382           
    383          z1_jpl =  1. / REAL(jpl) 
    384     
    385          SELECT CASE ( nn_pnd_scheme ) 
    386     
    387             CASE ( 0 )           !--- Prescribed melt ponds 
    388     
    389                DO jl = 1, jpl 
    390     
    391                   a_ip(:,:,jl) = rn_apnd * z1_jpl * zswitch(:,:) 
    392                   v_ip(:,:,jl) = 0.1 * zswitch(:,:) * a_ip(:,:,jl) 
    393     
    394                END DO 
    395     
    396             CASE ( 1, 2 )        !--- Prognostic melt ponds 
    397     
    398                DO jl = 1, jpl 
    399     
    400                   a_ip(:,:,jl) = 0.1 * zswitch(:,:) 
    401                   v_ip(:,:,jl) = 0.1 * zswitch(:,:) * a_ip(:,:,jl) 
    402     
    403                END DO 
    404     
    405          END SELECT 
    406     
     382         IF ( ln_pnd ) THEN 
     383 
     384            DO jl = 1, jpl 
     385               a_ip(:,:,jl) = 0.1 * zswitch(:,:) 
     386               v_ip(:,:,jl) = 0.1 * zswitch(:,:) * a_ip(:,:,jl) 
     387            END DO 
     388 
     389         ELSE 
     390 
     391            a_ip = 0._wp 
     392            v_ip = 0._wp 
     393 
     394         ENDIF 
    407395         ! END MV MP 2016 
    408396 
     
    433421         a_ip(:,:,:)      = 0._wp 
    434422         v_ip(:,:,:)      = 0._wp 
    435          h_ip(:,:,:)      = 0._wp 
    436          a_ip_frac(:,:,:) = 0._wp 
    437423         ! END MV MP 2016 
    438424 
     
    488474 
    489475      ! MV MP 2016 
    490       IF ( nn_pnd_scheme >= 1 ) THEN 
     476      IF ( nn_pnd_scheme > 0 ) THEN 
    491477         sxap  (:,:,:) = 0._wp    ; sxvp  (:,:,:) = 0._wp  
    492478         syap  (:,:,:) = 0._wp    ; syvp  (:,:,:) = 0._wp  
Note: See TracChangeset for help on using the changeset viewer.