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 10115 for NEMO/branches/2018/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcdta.F90 – NEMO

Ignore:
Timestamp:
2018-09-12T15:59:13+02:00 (6 years ago)
Author:
cbricaud
Message:

phase 3.6 coarsening branch with nemo_3.6_rev9192

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcdta.F90

    r7398 r10115  
    200200               DO ji = 1, jpi 
    201201                  DO jk = 1, jpk                        ! determines the intepolated T-S profiles at each (i,j) points 
    202                      zl = fsdept_n(ji,jj,jk) 
     202                     zl = gdept_0(ji,jj,jk) 
    203203                     IF(     zl < gdept_1d(1  ) ) THEN         ! above the first level of data 
    204204                        ztp(jk) = ztrcdta(ji,jj,1) 
     
    229229                     ik = mbkt(ji,jj)  
    230230                     IF( ik > 1 ) THEN 
    231                         zl = ( gdept_1d(ik) - fsdept_n(ji,jj,ik) ) / ( gdept_1d(ik) - gdept_1d(ik-1) ) 
     231                        zl = ( gdept_1d(ik) - gdept_0(ji,jj,ik) ) / ( gdept_1d(ik) - gdept_1d(ik-1) ) 
    232232                        ztrcdta(ji,jj,ik) = (1.-zl) * ztrcdta(ji,jj,ik) + zl * ztrcdta(ji,jj,ik-1) 
    233233                     ENDIF 
    234234                     ik = mikt(ji,jj) 
    235235                     IF( ik > 1 ) THEN 
    236                         zl = ( fsdept_n(ji,jj,ik) - gdept_1d(ik) ) / ( gdept_1d(ik+1) - gdept_1d(ik) ) 
     236                        zl = ( gdept_0(ji,jj,ik) - gdept_1d(ik) ) / ( gdept_1d(ik+1) - gdept_1d(ik) ) 
    237237                        ztrcdta(ji,jj,ik) = (1.-zl) * ztrcdta(ji,jj,ik) + zl * ztrcdta(ji,jj,ik+1) 
    238238                     ENDIF 
Note: See TracChangeset for help on using the changeset viewer.