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/DTA/dtasal.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/DTA/dtasal.F90

    r2715 r3211  
    3232 
    3333   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf_sal   ! structure of input SST (file informations, fields read) 
     34 
     35   !! * Control permutation of array indices 
     36#  include "dtasal_ftrans.h90" 
     37#  include "oce_ftrans.h90" 
     38#  include "dom_oce_ftrans.h90" 
    3439 
    3540   !! * Substitutions 
     
    158163#endif    
    159164         
    160       s_dta(:,:,:)=sf_sal(1)%fnow(:,:,:) 
     165#if defined key_z_first 
     166      !! DCSE_NEMO: Beware! These arrays will not be conformable after permuting indices of t_dta 
     167      DO jk = 1, jpk 
     168         DO jj = 1, jpj 
     169            DO ji = 1, jpi 
     170               s_dta(ji,jj,jk) = sf_sal(1)%fnow(ji,jj,jk) 
     171            END DO 
     172         END DO 
     173      END DO 
     174#else 
     175      s_dta(:,:,:) = sf_sal(1)%fnow(:,:,:) 
     176#endif 
    161177         
    162178      IF( ln_sco ) THEN 
    163          DO jj = 1, jpj                  ! interpolation of salinites 
     179         DO jj = 1, jpj                  ! interpolation of salinities 
    164180            DO ji = 1, jpi 
    165181               DO jk = 1, jpk 
Note: See TracChangeset for help on using the changeset viewer.