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 2052 for branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/TRA/traadv_cen2.F90 – NEMO

Ignore:
Timestamp:
2010-08-13T11:15:17+02:00 (14 years ago)
Author:
cetlod
Message:

Improve the merge TRA-TRC, see ticket:701

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/TRA/traadv_cen2.F90

    r2034 r2052  
    2020   !!                  area (set for orca 2 and 4 only) 
    2121   !!---------------------------------------------------------------------- 
    22    USE oce, ONLY: tsn  ! now ocean temperature and salinity 
     22   USE oce, ONLY: tn, sn  ! now ocean temperature and salinity 
    2323   USE dom_oce         ! ocean space and time domain 
    2424   USE eosbn2          ! equation of state 
     
    159159!!gm  not strickly exact : the freezing point should be computed at each ocean levels... 
    160160!!gm  not a big deal since cen2 is no more used in global ice-ocean simulations 
    161       ztfreez(:,:) = tfreez( tsn(:,:,1,jp_sal) ) 
     161      ztfreez(:,:) = tfreez( sn(:,:,1) ) 
    162162      DO jk = 1, jpk 
    163163         DO jj = 1, jpj 
    164164            DO ji = 1, jpi 
    165165               !                                        ! below ice covered area (if tn < "freezing"+0.1 ) 
    166                IF( tsn(ji,jj,jk,jp_tem) <= ztfreez(ji,jj) + 0.1 ) THEN   ;   zice = 1.e0 
     166               IF( tn(ji,jj,jk) <= ztfreez(ji,jj) + 0.1 ) THEN   ;   zice = 1.e0 
    167167               ELSE                                              ;   zice = 0.e0 
    168168               ENDIF 
Note: See TracChangeset for help on using the changeset viewer.