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 14857 for NEMO/trunk/src – NEMO

Changeset 14857 for NEMO/trunk/src


Ignore:
Timestamp:
2021-05-12T18:47:25+02:00 (3 years ago)
Author:
hadcv
Message:

#2600: Fixes in MY_SRC for nn_hls = 2/tiling and traadv_fct.F90 for nn_hls = 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/traadv_fct.F90

    r14834 r14857  
    164164         END_3D 
    165165         !                               !* upstream tracer flux in the k direction *! 
    166          DO_3D( 1, 1, 1, 1, 2, jpkm1 )      ! Interior value ( multiplied by wmask) 
     166         DO_3D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 2, jpkm1 )      ! Interior value ( multiplied by wmask) 
    167167            zfp_wk = pW(ji,jj,jk) + ABS( pW(ji,jj,jk) ) 
    168168            zfm_wk = pW(ji,jj,jk) - ABS( pW(ji,jj,jk) ) 
     
    171171         IF( ln_linssh ) THEN               ! top ocean value (only in linear free surface as zwz has been w-masked) 
    172172            IF( ln_isfcav ) THEN                        ! top of the ice-shelf cavities and at the ocean surface 
    173                DO_2D( 1, 1, 1, 1 ) 
     173               DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 
    174174                  zwz(ji,jj, mikt(ji,jj) ) = pW(ji,jj,mikt(ji,jj)) * pt(ji,jj,mikt(ji,jj),jn,Kbb)   ! linear free surface 
    175175               END_2D 
    176176            ELSE                                        ! no cavities: only at the ocean surface 
    177                DO_2D( 1, 1, 1, 1 ) 
     177               DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 
    178178                  zwz(ji,jj,1) = pW(ji,jj,1) * pt(ji,jj,1,jn,Kbb) 
    179179               END_2D 
Note: See TracChangeset for help on using the changeset viewer.