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 6591 – NEMO

Changeset 6591


Ignore:
Timestamp:
2016-05-20T15:33:10+02:00 (8 years ago)
Author:
clem
Message:

change lateral melting as it was

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limthd_da.F90

    r6515 r6591  
    139139                
    140140               ! decrease of concentration for the category jl 
    141                !!                  !    1st option: each category contributes to melting in proportion to its concentration 
    142                !!                  rswitch = MAX( 0._wp , SIGN( 1._wp, at_i(ji,jj) - epsi10 ) ) 
    143                !!                  zda     = rswitch * zda_tot(ji,jj) * a_i(ji,jj,jl) / MAX( at_i(ji,jj), epsi10 ) 
     141               !    1st option: each category contributes to melting in proportion to its concentration 
     142               rswitch = MAX( 0._wp , SIGN( 1._wp, at_i(ji,jj) - epsi10 ) ) 
     143               zda     = rswitch * zda_tot(ji,jj) * a_i(ji,jj,jl) / MAX( at_i(ji,jj), epsi10 ) 
    144144               !    2d option: melting of the upper cat first 
    145                zda = MAX( zda_tot(ji,jj), - a_i(ji,jj,jl) ) 
    146                zda_tot(ji,jj) = zda_tot(ji,jj) + zda 
     145               !!zda = MAX( zda_tot(ji,jj), - a_i(ji,jj,jl) ) 
     146               !!zda_tot(ji,jj) = zda_tot(ji,jj) + zda 
    147147                
    148148               ! Contribution to salt flux 
Note: See TracChangeset for help on using the changeset viewer.