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 13666 for NEMO/branches/UKMO/NEMO_4.0.1_fix_nans/src/ICE/icesbc.F90 – NEMO

Ignore:
Timestamp:
2020-10-23T16:33:46+02:00 (4 years ago)
Author:
dancopsey
Message:

Move the point where I correct the total ice fraction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_fix_nans/src/ICE/icesbc.F90

    r11715 r13666  
    138138      alb_ice(:,:,:) = ( 1. - cldf_ice ) * zalb_cs(:,:,:) + cldf_ice * zalb_os(:,:,:) 
    139139      ! 
     140 
     141      ! Apply a limit to the ice fraction to avoid NANs being generated in ice_thd_snwblow 
     142      ! (negative number to power of 0.66)  
     143      WHERE( at_i_b(:,:) > 1._wp ) at_i_b(:,:) = 1._wp 
     144 
    140145      ! 
    141146      SELECT CASE( ksbc )   !== fluxes over sea ice ==! 
Note: See TracChangeset for help on using the changeset viewer.