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 15548 for NEMO/branches/2021/ticket2632_r14588_theta_sbcblk/src/TOP/trcdta.F90 – NEMO

Ignore:
Timestamp:
2021-11-28T18:59:49+01:00 (3 years ago)
Author:
gsamson
Message:

update branch to the head of the trunk (r15547); ticket #2632

Location:
NEMO/branches/2021/ticket2632_r14588_theta_sbcblk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/ticket2632_r14588_theta_sbcblk

    • Property svn:externals
      •  

        old new  
        99 
        1010# SETTE 
        11 ^/utils/CI/sette@14244        sette 
         11^/utils/CI/sette@HEAD        sette 
         12 
  • NEMO/branches/2021/ticket2632_r14588_theta_sbcblk/src/TOP/trcdta.F90

    r14086 r15548  
    189189         ptrcdta(:,:,:) = sf_trcdta(kjl)%fnow(:,:,:) * tmask(:,:,:) 
    190190         !  
     191#if ! defined key_sed_off 
    191192         IF( ln_sco ) THEN                !== s- or mixed s-zps-coordinate  ==! 
    192193            ! 
     
    195196               WRITE(numout,*) 'trc_dta: interpolates passive tracer data onto the s- or mixed s-z-coordinate mesh' 
    196197            ENDIF 
    197             DO_2D( 1, 1, 1, 1 )                 ! vertical interpolation of T & S 
     198            DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )                 ! vertical interpolation of T & S 
    198199               DO jk = 1, jpk                        ! determines the intepolated T-S profiles at each (i,j) points 
    199200                  zl = gdept_0(ji,jj,jk) 
     
    220221            ! zps-coordinate (partial steps) interpolation at the last ocean level 
    221222            IF( ln_zps ) THEN 
    222                 DO_2D( 1, 1, 1, 1 ) 
     223                DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    223224                   ik = mbkt(ji,jj) 
    224                    IF( ik > 1 ) THEN 
     225                   IF( ik > 1 .AND. gdept_0(ji,jj,ik) < gdept_1d(ik) ) THEN 
    225226                      zl = ( gdept_1d(ik) - gdept_0(ji,jj,ik) ) / ( gdept_1d(ik) - gdept_1d(ik-1) ) 
    226227                      ptrcdta(ji,jj,ik) = (1.-zl) * ptrcdta(ji,jj,ik) + zl * ptrcdta(ji,jj,ik-1) 
     
    235236            ! 
    236237         ENDIF 
     238#endif 
    237239         ! Scale by multiplicative factor 
    238240         ptrcdta(:,:,:) = ptrcdta(:,:,:) * rf_trfac(kjl) 
Note: See TracChangeset for help on using the changeset viewer.