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 14765 for NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/TRA/traldf_iso.F90 – NEMO

Ignore:
Timestamp:
2021-04-29T16:25:38+02:00 (3 years ago)
Author:
hadcv
Message:

#2600: Merge in dev_r14393_HPC-03_Mele_Comm_Cleanup [14757]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/TRA/traldf_iso.F90

    r14680 r14765  
    147147         ENDIF 
    148148         ! 
    149          ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 1, jpk ) 
    150149         DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 1, jpk ) 
    151150            akz     (ji,jj,jk) = 0._wp 
     
    178177      IF( kpass == 1 ) THEN                  !==  first pass only  ==! 
    179178         ! 
    180          ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    181179         DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 2, jpkm1 ) 
    182180            ! 
     
    201199         ! 
    202200         IF( ln_traldf_msc ) THEN                ! stabilizing vertical diffusivity coefficient 
    203             ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    204201            DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 2, jpkm1 ) 
    205202               ! round brackets added to fix the order of floating point operations 
     
    215212            ! 
    216213            IF( ln_traldf_blp ) THEN                ! bilaplacian operator 
    217                ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    218214               DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 2, jpkm1 ) 
    219215                  akz(ji,jj,jk) = 16._wp   & 
     
    224220               END_3D 
    225221            ELSEIF( ln_traldf_lap ) THEN              ! laplacian operator 
    226                ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    227222               DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 2, jpkm1 ) 
    228223                  ze3w_2 = e3w(ji,jj,jk,Kmm) * e3w(ji,jj,jk,Kmm) 
     
    233228           ! 
    234229         ELSE                                    ! 33 flux set to zero with akz=ah_wslp2 ==>> computed in full implicit 
    235             ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 1, jpk ) 
    236230            DO_3D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 1, jpk ) 
    237231               akz(ji,jj,jk) = ah_wslp2(ji,jj,jk) 
     
    251245 
    252246         ! Horizontal tracer gradient 
    253          ! [comm_cleanup] ! DO_3D( 1, 0, 1, 0, 1, jpkm1 ) 
    254247         DO_3D( iij, iij-1, iij, iij-1, 1, jpkm1 ) 
    255248            zdit(ji,jj,jk) = ( pt(ji+1,jj  ,jk,jn) - pt(ji,jj,jk,jn) ) * umask(ji,jj,jk) 
     
    257250         END_3D 
    258251         IF( ln_zps ) THEN      ! botton and surface ocean correction of the horizontal gradient 
    259             ! [comm_cleanup] ! DO_2D( 1, 0, 1, 0 )           ! bottom correction (partial bottom cell) 
    260252            DO_2D( iij, iij-1, iij, iij-1 )            ! bottom correction (partial bottom cell) 
    261253               zdit(ji,jj,mbku(ji,jj)) = pgu(ji,jj,jn) 
     
    263255            END_2D 
    264256            IF( ln_isfcav ) THEN      ! first wet level beneath a cavity 
    265                ! [comm_cleanup] ! DO_2D( 1, 0, 1, 0 ) 
    266257               DO_2D( iij, iij-1, iij, iij-1 ) 
    267258                  IF( miku(ji,jj) > 1 )   zdit(ji,jj,miku(ji,jj)) = pgui(ji,jj,jn) 
     
    277268         DO jk = 1, jpkm1                                 ! Horizontal slab 
    278269            ! 
    279             ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 ) 
    280270            DO_2D( iij, iij, iij, iij ) 
    281271               !                             !== Vertical tracer gradient 
     
    287277            END_2D 
    288278            ! 
    289             ! [comm_cleanup] ! DO_2D( 1, 0, 1, 0 )           !==  Horizontal fluxes 
    290279            DO_2D( iij, iij-1, iij, iij-1 )           !==  Horizontal fluxes 
    291280               zabe1 = pahu(ji,jj,jk) * e2_e1u(ji,jj) * e3u(ji,jj,jk,Kmm) 
     
    317306            END_2D 
    318307            ! 
    319             ! [comm_cleanup] ! DO_2D( 0, 0, 0, 0 )           !== horizontal divergence and add to pta 
    320308            DO_2D( iij-1, iij-1, iij-1, iij-1 )           !== horizontal divergence and add to pta 
    321309               ! round brackets added to fix the order of floating point operations 
     
    339327         ztfw(:,:, 1 ) = 0._wp      ;      ztfw(:,:,jpk) = 0._wp 
    340328 
    341          ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 )    ! interior (2=<jk=<jpk-1) 
    342329         DO_3D( iij-1, iij-1, iij-1, iij-1, 2, jpkm1 )    ! interior (2=<jk=<jpk-1) 
    343330            ! 
     
    370357         !                                !==  add the vertical 33 flux  ==! 
    371358         IF( ln_traldf_lap ) THEN               ! laplacian case: eddy coef = ah_wslp2 - akz 
    372             ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    373359            DO_3D( iij-1, iij-1, iij-1, iij-1, 2, jpkm1 ) 
    374360               ztfw(ji,jj,jk) = ztfw(ji,jj,jk) + e1e2t(ji,jj) / e3w(ji,jj,jk,Kmm) * wmask(ji,jj,jk)   & 
     
    380366            SELECT CASE( kpass ) 
    381367            CASE(  1  )                            ! 1st pass : eddy coef = ah_wslp2 
    382                ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 2, jpkm1 ) 
    383368               DO_3D( iij-1, iij-1, iij-1, iij-1, 2, jpkm1 ) 
    384369                  ztfw(ji,jj,jk) =   & 
     
    395380         ENDIF 
    396381         ! 
    397          ! [comm_cleanup] ! DO_3D( 0, 0, 0, 0, 1, jpkm1 )    !==  Divergence of vertical fluxes added to pta  ==! 
    398382         DO_3D( iij-1, iij-1, iij-1, iij-1, 1, jpkm1 )    !==  Divergence of vertical fluxes added to pta  ==! 
    399383            pt_rhs(ji,jj,jk,jn) = pt_rhs(ji,jj,jk,jn) + zsign * (  ztfw (ji,jj,jk) - ztfw(ji,jj,jk+1)  ) * r1_e1e2t(ji,jj)   & 
Note: See TracChangeset for help on using the changeset viewer.