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 4280 for branches/2013/dev_r3858_NOC_ZTC/NEMOGCM/NEMO/TOP_SRC/trcdta.F90 – NEMO

Ignore:
Timestamp:
2013-11-20T11:17:17+01:00 (10 years ago)
Author:
acc
Message:

Branch 2013/dev_r3858_NOC_ZTC, #863. Further changes to allow PISCES SETTE tests to compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3858_NOC_ZTC/NEMOGCM/NEMO/TOP_SRC/trcdta.F90

    r4258 r4280  
    194194                  DO ji = 1, jpi 
    195195                     DO jk = 1, jpk                        ! determines the intepolated T-S profiles at each (i,j) points 
    196                         zl = fsdept_0(ji,jj,jk) 
     196                        zl = fsdept_n(ji,jj,jk) 
    197197                        IF(     zl < gdept_1d(1  ) ) THEN         ! above the first level of data 
    198198                           ztp(jk) =  ptrc(ji,jj,1    ,jn) 
     
    226226                        ik = mbkt(ji,jj)  
    227227                        IF( ik > 1 ) THEN 
    228                            zl = ( gdept_1d(ik) - fsdept_0(ji,jj,ik) ) / ( gdept_1d(ik) - gdept_1d(ik-1) ) 
     228                           zl = ( gdept_1d(ik) - fsdept_n(ji,jj,ik) ) / ( gdept_1d(ik) - gdept_1d(ik-1) ) 
    229229                           ptrc(ji,jj,ik,jn) = (1.-zl) * ptrc(ji,jj,ik,jn) + zl * ptrc(ji,jj,ik-1,jn) 
    230230                        ENDIF 
Note: See TracChangeset for help on using the changeset viewer.