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 13898 for NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/eosbn2.F90 – NEMO

Ignore:
Timestamp:
2020-11-27T15:42:26+01:00 (3 years ago)
Author:
hadcv
Message:

#2365: Merge in changes from dev_r13508_HPC-09_communications_cleanup up to [13701]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/eosbn2.F90

    r13819 r13898  
    250250      CASE( np_teos10, np_eos80 )                !==  polynomial TEOS-10 / EOS-80 ==! 
    251251         ! 
    252          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     252         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    253253            ! 
    254254            zh  = pdep(ji,jj,jk) * r1_Z0                                  ! depth 
     
    286286      CASE( np_seos )                !==  simplified EOS  ==! 
    287287         ! 
    288          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     288         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    289289            zt  = pts  (ji,jj,jk,jp_tem) - 10._wp 
    290290            zs  = pts  (ji,jj,jk,jp_sal) - 35._wp 
     
    363363            END DO 
    364364            ! 
    365             DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     365            DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    366366               ! 
    367367               ! compute density (2*nn_sto_eos) times: 
     
    413413         ! Non-stochastic equation of state 
    414414         ELSE 
    415             DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     415            DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    416416               ! 
    417417               zh  = pdep(ji,jj,jk) * r1_Z0                                  ! depth 
     
    451451      CASE( np_seos )                !==  simplified EOS  ==! 
    452452         ! 
    453          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     453         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    454454            zt  = pts  (ji,jj,jk,jp_tem) - 10._wp 
    455455            zs  = pts  (ji,jj,jk,jp_sal) - 35._wp 
     
    518518      CASE( np_teos10, np_eos80 )                !==  polynomial TEOS-10 / EOS-80 ==! 
    519519         ! 
    520          DO_2D( 1, 1, 1, 1 ) 
     520         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    521521            ! 
    522522            zh  = pdep(ji,jj) * r1_Z0                                  ! depth 
     
    553553      CASE( np_seos )                !==  simplified EOS  ==! 
    554554         ! 
    555          DO_2D( 1, 1, 1, 1 ) 
     555         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    556556            ! 
    557557            zt    = pts  (ji,jj,jp_tem)  - 10._wp 
     
    612612      CASE( np_teos10, np_eos80 )                !==  polynomial TEOS-10 / EOS-80 ==! 
    613613         ! 
    614          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     614         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    615615            ! 
    616616            zh  = gdept(ji,jj,jk,Kmm) * r1_Z0                                ! depth 
     
    665665      CASE( np_seos )                  !==  simplified EOS  ==! 
    666666         ! 
    667          DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     667         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpkm1 ) 
    668668            zt  = pts (ji,jj,jk,jp_tem) - 10._wp   ! pot. temperature anomaly (t-T0) 
    669669            zs  = pts (ji,jj,jk,jp_sal) - 35._wp   ! abs. salinity anomaly (s-S0) 
     
    731731      CASE( np_teos10, np_eos80 )                !==  polynomial TEOS-10 / EOS-80 ==! 
    732732         ! 
    733          DO_2D( 1, 1, 1, 1 ) 
     733         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    734734            ! 
    735735            zh  = pdep(ji,jj) * r1_Z0                                  ! depth 
     
    784784      CASE( np_seos )                  !==  simplified EOS  ==! 
    785785         ! 
    786          DO_2D( 1, 1, 1, 1 ) 
     786         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    787787            ! 
    788788            zt    = pts  (ji,jj,jp_tem) - 10._wp   ! pot. temperature anomaly (t-T0) 
     
    946946      IF( ln_timing )   CALL timing_start('bn2') 
    947947      ! 
    948       DO_3D( 1, 1, 1, 1, 2, jpkm1 )      ! interior points only (2=< jk =< jpkm1 ); surface and bottom value set to zero one for all in istate.F90 
     948      DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 2, jpkm1 )      ! interior points only (2=< jk =< jpkm1 ); surface and bottom value set to zero one for all in istate.F90 
    949949         zrw =   ( gdepw(ji,jj,jk  ,Kmm) - gdept(ji,jj,jk,Kmm) )   & 
    950950            &  / ( gdept(ji,jj,jk-1,Kmm) - gdept(ji,jj,jk,Kmm) )  
Note: See TracChangeset for help on using the changeset viewer.