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 3211 for branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/LDF/ldfeiv.F90 – NEMO

Ignore:
Timestamp:
2011-12-11T16:00:26+01:00 (13 years ago)
Author:
spickles2
Message:

Stephen Pickles, 11 Dec 2011

Commit to bring the rest of the DCSE NEMO development branch
in line with the latest development version. This includes
array index re-ordering of all OPA_SRC/.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/DEV_r2739_STFC_dCSE/NEMOGCM/NEMO/OPA_SRC/LDF/ldfeiv.F90

    r2715 r3211  
    3131   PUBLIC   ldf_eiv    ! routine called by step.F90 
    3232    
     33   !! * Control permutation of array indices 
     34#  include "oce_ftrans.h90" 
     35#  include "dom_oce_ftrans.h90" 
     36#  include "sbc_oce_ftrans.h90" 
     37#  include "ldftra_oce_ftrans.h90" 
     38#  include "ldfslp_ftrans.h90" 
     39 
    3340   !! * Substitutions 
    3441#  include "domzgr_substitute.h90" 
     
    8491      ! ---------------------------------------- 
    8592      IF( ln_traldf_grif ) THEN 
    86          DO jk = 1, jpk 
    8793#  if defined key_vectopt_loop   
     94         DO jk = 1, jpk 
    8895!CDIR NOVERRCHK  
    8996            DO ji = 1, jpij   ! vector opt. 
     
    100107               zhw(ji,1) = zhw(ji,1) + ze3w 
    101108            END DO 
     109         END DO 
    102110#  else 
     111#     if defined key_z_first 
     112         DO jj = 2, jpjm1 
     113            DO ji = 2, jpim1 
     114               DO jk = 1, jpk 
     115#     else 
     116         DO jk = 1, jpk 
    103117            DO jj = 2, jpjm1 
    104118!CDIR NOVERRCHK  
    105119               DO ji = 2, jpim1 
     120#     endif 
    106121                  ! Take the max of N^2 and zero then take the vertical sum  
    107122                  ! of the square root of the resulting N^2 ( required to compute  
     
    117132               END DO 
    118133            END DO 
     134         END DO 
    119135#  endif 
    120          END DO 
    121136      ELSE 
    122          DO jk = 1, jpk 
    123137#  if defined key_vectopt_loop   
     138         DO jk = 1, jpk 
    124139!CDIR NOVERRCHK  
    125140            DO ji = 1, jpij   ! vector opt. 
     
    137152               zhw(ji,1) = zhw(ji,1) + ze3w 
    138153            END DO 
     154         END DO 
    139155#  else 
     156#     if defined key_z_first 
     157         DO jj = 2, jpjm1 
     158            DO ji = 2, jpim1 
     159               DO jk = 1, jpk 
     160#     else 
     161         DO jk = 1, jpk 
    140162            DO jj = 2, jpjm1 
    141163!CDIR NOVERRCHK  
    142164               DO ji = 2, jpim1 
     165#     endif 
    143166                  ! Take the max of N^2 and zero then take the vertical sum  
    144167                  ! of the square root of the resulting N^2 ( required to compute  
     
    155178               END DO 
    156179            END DO 
     180         END DO 
    157181#  endif 
    158          END DO 
    159182      END IF 
    160183 
Note: See TracChangeset for help on using the changeset viewer.