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 13775 for NEMO/branches/UKMO – NEMO

Changeset 13775 for NEMO/branches/UKMO


Ignore:
Timestamp:
2020-11-11T13:54:38+01:00 (3 years ago)
Author:
dancopsey
Message:

Correct calculation of a_ip_eff so a_ip_eff=0 when h_il=zhl_max and a_ip_eff=a_ip_frac when h_il=zhl_min.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.3_fix_a_ip_eff/src/ICE/icevar.F90

    r13587 r13775  
    244244      ELSEWHERE( h_il(:,:,:) >= zhl_max )  ;   a_ip_eff(:,:,:) = 0._wp                  ! lid is very thick. Cover all the pond up with ice and snow 
    245245      ELSEWHERE                            ;   a_ip_eff(:,:,:) = a_ip_frac(:,:,:) * &   ! lid is in between. Expose part of the pond 
    246          &                                                       ( h_il(:,:,:) - zhl_min ) / ( zhl_max - zhl_min ) 
     246         &                                                       ( zhl_max - h_il(:,:,:) ) / ( zhl_max - zhl_min ) 
    247247      END WHERE 
    248248      ! 
Note: See TracChangeset for help on using the changeset viewer.