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/TRA/trasbc.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/TRA/trasbc.F90

    r14189 r14215  
    105105!!gm  This should be moved into sbcmod.F90 module ? (especially now that ln_traqsr is read in namsbc namelist) 
    106106      IF( .NOT.ln_traqsr ) THEN     ! no solar radiation penetration 
    107          DO_2D( isj, iej, isi, iei ) 
     107         DO_2D( isi, iei, isj, iej ) 
    108108            qns(ji,jj) = qns(ji,jj) + qsr(ji,jj)      ! total heat flux in qns 
    109109            qsr(ji,jj) = 0._wp                        ! qsr set to zero 
     
    126126         ELSE                                             ! No restart or restart not found: Euler forward time stepping 
    127127            zfact = 1._wp 
    128             DO_2D( isj, iej, isi, iei ) 
     128            DO_2D( isi, iei, isj, iej ) 
    129129               sbc_tsc(ji,jj,:) = 0._wp 
    130130               sbc_tsc_b(ji,jj,:) = 0._wp 
     
    133133      ELSE                                !* other time-steps: swap of forcing fields 
    134134         zfact = 0.5_wp 
    135          DO_2D( isj, iej, isi, iei ) 
     135         DO_2D( isi, iei, isj, iej ) 
    136136            sbc_tsc_b(ji,jj,:) = sbc_tsc(ji,jj,:) 
    137137         END_2D 
    138138      ENDIF 
    139139      !                             !==  Now sbc tracer content fields  ==! 
    140       DO_2D( isj, iej, isi, iei ) 
     140      DO_2D( isi, iei, isj, iej ) 
    141141         sbc_tsc(ji,jj,jp_tem) = r1_rho0_rcp * qns(ji,jj)   ! non solar heat flux 
    142142         sbc_tsc(ji,jj,jp_sal) = r1_rho0     * sfx(ji,jj)   ! salt flux due to freezing/melting 
    143143      END_2D 
    144144      IF( ln_linssh ) THEN                !* linear free surface 
    145          DO_2D( isj, iej, isi, iei )                    !==>> add concentration/dilution effect due to constant volume cell 
     145         DO_2D( isi, iei, isj, iej )                    !==>> add concentration/dilution effect due to constant volume cell 
    146146            sbc_tsc(ji,jj,jp_tem) = sbc_tsc(ji,jj,jp_tem) + r1_rho0 * emp(ji,jj) * pts(ji,jj,1,jp_tem,Kmm) 
    147147            sbc_tsc(ji,jj,jp_sal) = sbc_tsc(ji,jj,jp_sal) + r1_rho0 * emp(ji,jj) * pts(ji,jj,1,jp_sal,Kmm) 
Note: See TracChangeset for help on using the changeset viewer.