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

Ignore:
Timestamp:
2021-06-24T17:39:38+02:00 (3 years ago)
Author:
clem
Message:

nn_hls=2: solve a number of floating points because some arrays are not defined on the first halo. Looks like this is not the end.

File:
1 edited

Legend:

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

    r14834 r15053  
    7878         ! compute tbl property at T point 
    7979         pvarout(1,:) = 0._wp 
    80          DO_2D( 0, 1, 1, 1 ) 
     80         DO_2D( nn_hls-1, nn_hls, nn_hls, nn_hls ) 
    8181            pvarout(ji,jj) = 0.5_wp * (zvarout(ji,jj) + zvarout(ji-1,jj)) 
    8282         END_2D 
     
    9999         ! pvarout is an averaging of wet point 
    100100         pvarout(:,1) = 0._wp 
    101          DO_2D( 1, 1, 0, 1 ) 
     101         DO_2D( nn_hls, nn_hls, nn_hls-1, nn_hls ) 
    102102            pvarout(ji,jj) = 0.5_wp * (zvarout(ji,jj) + zvarout(ji,jj-1)) 
    103103         END_2D 
     
    138138      ! 
    139139      ! compute tbl top.bottom level and thickness 
    140       DO_2D( 1, 1, 1, 1 ) 
     140      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    141141         ! 
    142142         ! tbl top/bottom indices initialisation 
Note: See TracChangeset for help on using the changeset viewer.