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 14922 for NEMO/trunk/src/OCE/ZDF – NEMO

Ignore:
Timestamp:
2021-05-28T15:25:33+02:00 (3 years ago)
Author:
hadcv
Message:

#2682: Fix AMM12 and AGRIF_DEMO failing with debug flags and nn_hls = 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ZDF/zdfgls.F90

    r14834 r14922  
    208208         zhsro(:,:) = rn_hsro 
    209209      CASE ( 1 )             ! Standard Charnock formula 
    210          zhsro(:,:) = MAX( rsbc_zs1 * ustar2_surf(A2D(nn_hls)) , rn_hsro ) 
     210         DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 
     211            zhsro(ji,jj) = MAX( rsbc_zs1 * ustar2_surf(ji,jj) , rn_hsro ) 
     212         END_2D 
    211213      CASE ( 2 )             ! Roughness formulae according to Rascle et al., Ocean Modelling (2008) 
    212214!!gm faster coding : the 2 comment lines should be used 
Note: See TracChangeset for help on using the changeset viewer.