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/SWE/dynldf_lap_blp.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/SWE/dynldf_lap_blp.F90

    r12983 r13295  
    9797            DO jk = 1, jpkm1                                 ! Horizontal slab 
    9898               !                                              
    99                DO_2D_01_01 
     99               DO_2D( 0, 1, 0, 1 ) 
    100100               !                                      ! ahm * e3 * curl  (computed from 1 to jpim1/jpjm1) 
    101101!!gm open question here : e3f  at before or now ?    probably now...  
     
    112112               END_2D 
    113113               ! 
    114                DO_2D_00_00 
     114               DO_2D( 0, 0, 0, 0 ) 
    115115                  pu_rhs(ji,jj,jk) = pu_rhs(ji,jj,jk) + zsign * (                                             & 
    116116                     &              - ( zcur(ji  ,jj) - zcur(ji,jj-1) ) * r1_e2u(ji,jj) / e3u(ji,jj,jk,Kmm)   & 
     
    128128            DO jk = 1, jpkm1                                 ! Horizontal slab 
    129129               ! 
    130                DO_2D_01_01 
     130               DO_2D( 0, 1, 0, 1 ) 
    131131                  !                                      ! shearing stress component (F-point)   NB : ahmf has already been multiplied by fmask 
    132132                  zshe(ji-1,jj-1) = ahmf(ji-1,jj-1,jk)                                                              & 
     
    143143               END_2D 
    144144               ! 
    145                DO_2D_00_00 
     145               DO_2D( 0, 0, 0, 0 ) 
    146146                  pu_rhs(ji,jj,jk) = pu_rhs(ji,jj,jk) + zsign * r1_e1e2u(ji,jj) / e3u(ji,jj,jk,Kmm)                               & 
    147147                     &    * (   (   zten(ji+1,jj  ) * e2t(ji+1,jj  )*e2t(ji+1,jj  ) * e3t(ji+1,jj  ,jk,Kmm)                       & 
     
    164164            DO jk = 1, jpkm1                                 ! Horizontal slab 
    165165               ! 
    166                DO_2D_01_01 
     166               DO_2D( 0, 1, 0, 1 ) 
    167167                  !                                      ! shearing stress component (F-point)   NB : ahmf has already been multiplied by fmask 
    168168                  zshe(ji-1,jj-1) = ahmf(ji-1,jj-1,jk)                                           & 
     
    175175               END_2D 
    176176               ! 
    177                DO_2D_00_00 
     177               DO_2D( 0, 0, 0, 0 ) 
    178178                  pu_rhs(ji,jj,jk) = pu_rhs(ji,jj,jk) + zsign * r1_e1e2u(ji,jj) / e3u(ji,jj,jk,Kmm)   & 
    179179                     &    * (   zten(ji+1,jj  ) * e2t(ji+1,jj  ) * e3t(ji+1,jj  ,jk,Kmm)              & 
Note: See TracChangeset for help on using the changeset viewer.