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/ZDF/zdfosm.F90 – NEMO

Ignore:
Timestamp:
2020-12-18T14:49:22+01:00 (3 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/ZDF/zdfosm.F90

    r14072 r14215  
    23472347      ! calculate horizontal gradients at u & v points 
    23482348 
    2349       DO_2D( 0, 0, 1, 0 ) 
     2349      DO_2D( 1, 0, 0, 0 ) 
    23502350         zdtdx(ji,jj) = ( ztm(ji+1,jj) - ztm( ji,jj) )  * umask(ji,jj,1) / e1u(ji,jj) 
    23512351         zdsdx(ji,jj) = ( zsm(ji+1,jj) - zsm( ji,jj) )  * umask(ji,jj,1) / e1u(ji,jj) 
     
    23552355      END_2D 
    23562356 
    2357       DO_2D( 1, 0, 0, 0 ) 
     2357      DO_2D( 0, 0, 1, 0 ) 
    23582358         zdtdy(ji,jj) = ( ztm(ji,jj+1) - ztm( ji,jj) ) * vmask(ji,jj,1) / e1v(ji,jj) 
    23592359         zdsdy(ji,jj) = ( zsm(ji,jj+1) - zsm( ji,jj) ) * vmask(ji,jj,1) / e1v(ji,jj) 
     
    23662366      CALL eos_rab(ztsm_midv, zmld_midv, zabv, Kmm) 
    23672367 
    2368       DO_2D( 0, 0, 1, 0 ) 
     2368      DO_2D( 1, 0, 0, 0 ) 
    23692369         dbdx_mle(ji,jj) = grav*(zdtdx(ji,jj)*zabu(ji,jj,jp_tem) - zdsdx(ji,jj)*zabu(ji,jj,jp_sal)) 
    23702370      END_2D 
    2371       DO_2D( 1, 0, 0, 0 ) 
     2371      DO_2D( 0, 0, 1, 0 ) 
    23722372         dbdy_mle(ji,jj) = grav*(zdtdy(ji,jj)*zabv(ji,jj,jp_tem) - zdsdy(ji,jj)*zabv(ji,jj,jp_sal)) 
    23732373      END_2D 
Note: See TracChangeset for help on using the changeset viewer.