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/DYN/dynspg_ts.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/DYN/dynspg_ts.F90

    r2724 r3211  
    5757   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   ub_b, vb_b   ! before averaged velocity 
    5858 
     59   !! * Control permutation of array indices 
     60#  include "oce_ftrans.h90" 
     61#  include "dom_oce_ftrans.h90" 
     62#  include "sbc_oce_ftrans.h90" 
     63#  include "domvvl_ftrans.h90" 
     64#  include "obc_oce_ftrans.h90" 
     65#  include "zdf_oce_ftrans.h90" 
     66 
    5967   !! * Substitutions 
    6068#  include "domzgr_substitute.h90" 
     
    179187      zva(:,:) = 0.e0   ;   zvn(:,:) = 0.e0   ;   vb_b(:,:) = 0.e0 
    180188      ! 
     189#if defined key_z_first 
     190      DO jj = 1, jpj 
     191         DO ji = 1, jpi 
     192            DO jk = 1, jpkm1 
     193#else 
    181194      DO jk = 1, jpkm1 
    182195#if defined key_vectopt_loop 
     
    186199         DO jj = 1, jpj 
    187200            DO ji = 1, jpi 
     201#endif 
    188202#endif 
    189203               !                                                                              ! now trend 
     
    206220 
    207221      !                                   !* baroclinic momentum trend (remove the vertical mean trend) 
     222#if defined key_z_first 
     223      DO jj = 2, jpjm1 
     224         DO ji = 2, jpim1 
     225            DO jk = 1, jpkm1 
     226#else 
    208227      DO jk = 1, jpkm1                    ! -------------------------- 
    209228         DO jj = 2, jpjm1 
    210229            DO ji = fs_2, fs_jpim1   ! vector opt. 
     230#endif 
    211231               ua(ji,jj,jk) = ua(ji,jj,jk) - zua(ji,jj) * hur(ji,jj) 
    212232               va(ji,jj,jk) = va(ji,jj,jk) - zva(ji,jj) * hvr(ji,jj) 
Note: See TracChangeset for help on using the changeset viewer.