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 14866 for NEMO/branches/UKMO/NEMO_4.0.4_GO8_package/src/ICE/icethd_pnd.F90 – NEMO

Ignore:
Timestamp:
2021-05-14T17:21:36+02:00 (3 years ago)
Author:
edblockley
Message:

Fixing reproducibility issue in melt-ponds scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_GO8_package/src/ICE/icethd_pnd.F90

    r14727 r14866  
    582582       
    583583      zvolp(:,:) = 0._wp 
     584      zvolp_res(:,:) = 0._wp 
    584585 
    585586      DO jl = 1, jpl 
     
    647648                  zTavg = zTavg + t_su(ji,jj,jl)*a_i(ji,jj,jl) 
    648649               END DO 
    649 !! EWB: bug here - should be divided by at_i(ji,jj) but zTavg is not used anywhere 
    650                zTavg = zTavg / a_i(ji,jj,jl) !!! could get a division by zero here 
     650               zTavg = zTavg / at_i(ji,jj) !!! could get a division by zero here 
    651651          
    652652               DO jl = 1, jpl-1 
Note: See TracChangeset for help on using the changeset viewer.