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/TRA – 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.

Location:
NEMO/trunk/src/OCE/TRA
Files:
2 edited

Legend:

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

    r14834 r15053  
    10781078      z1_T0   = 1._wp/40._wp 
    10791079      ! 
    1080       DO_2D( 1, 1, 1, 1 ) 
     1080      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    10811081         ! 
    10821082         zt  = ctmp   (ji,jj) * z1_T0 
     
    11421142         ! 
    11431143         z1_S0 = 1._wp / 35.16504_wp 
    1144          DO_2D( 1, 1, 1, 1 ) 
     1144         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    11451145            zs= SQRT( ABS( psal(ji,jj) ) * z1_S0 )           ! square root salinity 
    11461146            ptf(ji,jj) = ((((1.46873e-03_wp*zs-9.64972e-03_wp)*zs+2.28348e-02_wp)*zs & 
     
    12491249      CASE( np_teos10, np_eos80 )                !==  polynomial TEOS-10 / EOS-80 ==! 
    12501250         ! 
    1251          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     1251         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    12521252            ! 
    12531253            zh  = gdept(ji,jj,jk,Kmm) * r1_Z0                                ! depth 
     
    13081308      CASE( np_seos )                !==  Vallis (2006) simplified EOS  ==! 
    13091309         ! 
    1310          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     1310         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    13111311            zt  = pts(ji,jj,jk,jp_tem) - 10._wp  ! temperature anomaly (t-T0) 
    13121312            zs = pts (ji,jj,jk,jp_sal) - 35._wp  ! abs. salinity anomaly (s-S0) 
  • NEMO/trunk/src/OCE/TRA/trabbl.F90

    r14834 r15053  
    339339      ENDIF 
    340340      !                                        !* bottom variables (T, S, alpha, beta, depth, velocity) 
    341       DO_2D( 1, 1, 1, 1 ) 
     341      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    342342         ik = mbkt(ji,jj)                             ! bottom T-level index 
    343343         zts (ji,jj,jp_tem) = ts(ji,jj,ik,jp_tem,Kbb) ! bottom before T and S 
Note: See TracChangeset for help on using the changeset viewer.