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 12353 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/ICE/icedyn_adv_umx.F90 – NEMO

Ignore:
Timestamp:
2020-01-29T17:15:37+01:00 (4 years ago)
Author:
acc
Message:

Branch 2019/dev_r11943_MERGE_2019. Additions to the do loop macro implementation: converted a few loops previously missed because they used jpi-1 instead of jpim1 etc.; changed internal macro names in do_loop_substitute.h90 to strings that are much more unlikely to appear in any future code elsewhere and removed the key_vectopt_loop option (and all related code) since the do loop macros have suppressed this option. These changes have been fully SETTE-tested and this branch should now be ready to go back to the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src/ICE/icedyn_adv_umx.F90

    r12340 r12353  
    5151   ! 
    5252   !! * Substitutions 
    53 #  include "vectopt_loop_substitute.h90" 
    5453#  include "do_loop_substitute.h90" 
    5554   !!---------------------------------------------------------------------- 
     
    816815      DO jl = 1, jpl 
    817816         DO jj = 2, jpjm1         ! First derivative (gradient) 
    818             DO ji = 1, fs_jpim1 
     817            DO ji = 1, jpim1 
    819818               ztu1(ji,jj,jl) = ( pt(ji+1,jj,jl) - pt(ji,jj,jl) ) * r1_e1u(ji,jj) * umask(ji,jj,1) 
    820819            END DO 
    821820            !                     ! Second derivative (Laplacian) 
    822             DO ji = fs_2, fs_jpim1 
     821            DO ji = 2, jpim1 
    823822               ztu2(ji,jj,jl) = ( ztu1(ji,jj,jl) - ztu1(ji-1,jj,jl) ) * r1_e1t(ji,jj) 
    824823            END DO 
     
    830829      DO jl = 1, jpl 
    831830         DO jj = 2, jpjm1         ! Third derivative 
    832             DO ji = 1, fs_jpim1 
     831            DO ji = 1, jpim1 
    833832               ztu3(ji,jj,jl) = ( ztu2(ji+1,jj,jl) - ztu2(ji,jj,jl) ) * r1_e1u(ji,jj) * umask(ji,jj,1) 
    834833            END DO 
    835834            !                     ! Fourth derivative 
    836             DO ji = fs_2, fs_jpim1 
     835            DO ji = 2, jpim1 
    837836               ztu4(ji,jj,jl) = ( ztu3(ji,jj,jl) - ztu3(ji-1,jj,jl) ) * r1_e1t(ji,jj) 
    838837            END DO 
Note: See TracChangeset for help on using the changeset viewer.