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

Ignore:
Timestamp:
2017-05-24T10:02:23+02:00 (7 years ago)
Author:
vancop
Message:

Quick commit on empirical melt ponds

File:
1 edited

Legend:

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

    r7319 r8061  
    417417      !-------------------------------------------------------------------- 
    418418      ! 
    419       IF ( ln_limMP ) THEN 
    420          a_ip(:,:,:) = 0.1_wp 
    421          v_ip(:,:,:) = 0.1_wp 
    422          h_ip(:,:,:) = 0._wp 
    423          a_ip_frac(:,:,:) = 0._wp 
    424  
    425          at_ip(:,:) = 0._wp 
    426          vt_ip(:,:) = 0._wp 
    427       ENDIF 
     419      !IF ( ln_pnd   ) THEN 
     420      SELECT CASE ( nn_pnd_scheme ) 
     421 
     422         z1_jpl =  1 / REAL(jpl) 
     423 
     424         CASE ( 0 )           !--- Prescribed melt ponds 
     425 
     426            DO jl = 1, jpl 
     427 
     428               a_ip(:,:,jl) = rn_apnd * z1_jpl * zswitch(:,:) 
     429               h_ip(:,:,jl) = 0.1 * zswitch(:,:) 
     430 
     431            END DO 
     432 
     433         CASE ( 1, 2 )        !--- Prognostic melt ponds 
     434 
     435            DO jl = 1, jpl 
     436 
     437               a_ip(:,:,jl) = 0.1 * zswitch(:,:) 
     438               h_ip(:,:,jl) = 0.1 * zswitch(:,:) 
     439 
     440            END DO 
     441 
     442      END SELECT 
     443 
     444      v_ip(:,:,:)      = a_ip(:,:,:)  * h_i_p(:,:,:) 
     445      a_ip_frac(:,:,:) = a_ip(:,:,:) / a_i(:,:,:) 
    428446 
    429447      ! END MV MP 2016 
     
    473491 
    474492      ! MV MP 2016 
    475       IF ( ln_limMP ) THEN 
     493      IF ( nn_pnd_scheme > 1 ) THEN 
    476494         sxap  (:,:,:) = 0._wp    ; sxvp  (:,:,:) = 0._wp  
    477495         syap  (:,:,:) = 0._wp    ; syvp  (:,:,:) = 0._wp  
Note: See TracChangeset for help on using the changeset viewer.