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 15055 for NEMO/trunk/src/OCE/ISF/isfhdiv.F90 – NEMO

Ignore:
Timestamp:
2021-06-25T00:36:40+02:00 (3 years ago)
Author:
clem
Message:

nn_hls=2: make sure ww is defined on the halos since it is used in several places. So we need to ensure that hdiv is also defined on the halos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ISF/isfhdiv.F90

    r15004 r15055  
    9797      ! 
    9898      ! compute integrated divergence correction 
    99       DO_2D( nn_hls-1, nn_hls, nn_hls-1, nn_hls ) 
     99      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    100100         zhdiv(ji,jj) = 0.5_wp * ( pfwf(ji,jj) + pfwf_b(ji,jj) ) * r1_rho0 / phtbl(ji,jj) 
    101101      END_2D 
    102102      ! 
    103103      ! update divergence at each level affected by ice shelf top boundary layer 
    104       DO_2D_OVR( nn_hls-1, nn_hls, nn_hls-1, nn_hls ) 
     104      DO_2D_OVR( nn_hls, nn_hls, nn_hls, nn_hls ) 
    105105         ikt = ktop(ji,jj) 
    106106         ikb = kbot(ji,jj) 
     
    136136      !!---------------------------------------------------------------------- 
    137137      ! 
    138       DO_3D_OVR( nn_hls-1, nn_hls, nn_hls-1, nn_hls, 1, jpk ) 
     138      DO_3D_OVR( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpk ) 
    139139         phdiv(ji,jj,jk) =  phdiv(ji,jj,jk) + pqvol(ji,jj,jk) * r1_e1e2t(ji,jj)   & 
    140140            &                             / e3t(ji,jj,jk,Kmm) 
Note: See TracChangeset for help on using the changeset viewer.