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 13295 for NEMO/trunk/src/OCE/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2020-07-10T20:24:21+02:00 (4 years ago)
Author:
acc
Message:

Replace do-loop macros in the trunk with alternative forms with greater flexibility for extra halo applications. This alters a lot of routines but does not change any behaviour or results. do_loop_substitute.h90 is greatly simplified by this change. SETTE results are identical to those with the previous revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DOM/dommsk.F90

    r13286 r13295  
    131131      ! 
    132132      tmask(:,:,:) = 0._wp 
    133       DO_2D_11_11 
     133      DO_2D( 1, 1, 1, 1 ) 
    134134         iktop = k_top(ji,jj) 
    135135         ikbot = k_bot(ji,jj) 
     
    149149         CALL iom_get ( inum, jpdom_global, 'bdy_msk', bdytmask(:,:) ) 
    150150         CALL iom_close( inum ) 
    151          DO_3D_11_11( 1, jpkm1 ) 
     151         DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
    152152            tmask(ji,jj,jk) = tmask(ji,jj,jk) * bdytmask(ji,jj) 
    153153         END_3D 
     
    157157      ! ---------------------------------------- 
    158158      ! NB: at this point, fmask is designed for free slip lateral boundary condition 
    159       DO_3D_00_00( 1, jpk ) 
     159      DO_3D( 0, 0, 0, 0, 1, jpk ) 
    160160         umask(ji,jj,jk) = tmask(ji,jj  ,jk) * tmask(ji+1,jj  ,jk) 
    161161         vmask(ji,jj,jk) = tmask(ji,jj  ,jk) * tmask(ji  ,jj+1,jk) 
     
    199199         DO jk = 1, jpk 
    200200            zwf(:,:) = fmask(:,:,jk)          
    201             DO_2D_00_00 
     201            DO_2D( 0, 0, 0, 0 ) 
    202202               IF( fmask(ji,jj,jk) == 0._wp ) THEN 
    203203                  fmask(ji,jj,jk) = rn_shlat * MIN( 1._wp , MAX( zwf(ji+1,jj), zwf(ji,jj+1),   & 
Note: See TracChangeset for help on using the changeset viewer.