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 14215 for NEMO/trunk/src/OCE/DIA/diaptr.F90 – NEMO

Ignore:
Timestamp:
2020-12-18T14:49:22+01:00 (4 years ago)
Author:
acc
Message:

trunk changes to swap the order of arguments to the DO LOOP macros. These changes result in a more natural i-j-k ordering as explained in #2595. SETTE is passed before and after these changes and results are unchanged. This fixes #2595

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DIA/diaptr.F90

    r14090 r14215  
    382382            zts(:,:,:,:) = 0._wp 
    383383 
    384             DO_3D( 1, 0, 1, 1, 1, jpkm1 ) 
     384            DO_3D( 1, 1, 1, 0, 1, jpkm1 ) 
    385385               zvfc = e1v(ji,jj) * e3v(ji,jj,jk,Kmm) 
    386386               zmask(ji,jj,jk)      = vmask(ji,jj,jk)      * zvfc 
     
    437437            zts(:,:,:,:) = 0._wp 
    438438 
    439             DO_3D( 1, 0, 1, 1, 1, jpkm1 ) 
     439            DO_3D( 1, 1, 1, 0, 1, jpkm1 ) 
    440440               zvfc = e1v(ji,jj) * e3v(ji,jj,jk,Kmm) 
    441441               zts(ji,jj,jk,jp_tem) = (ts(ji,jj,jk,jp_tem,Kmm)+ts(ji,jj+1,jk,jp_tem,Kmm)) * 0.5 * zvfc  !Tracers averaged onto V grid 
Note: See TracChangeset for help on using the changeset viewer.