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 2082 for branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/DIA/diaar5.F90 – NEMO

Ignore:
Timestamp:
2010-09-10T12:32:58+02:00 (14 years ago)
Author:
cetlod
Message:

Improve the merge of TRA-TRC, see ticket #717

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/DIA/diaar5.F90

    r2027 r2082  
    6767      REAL(wp), DIMENSION(jpi,jpj    ) ::   zarea_ssh, zbotpres 
    6868      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zrhd, zrhop 
     69      REAL(wp), DIMENSION(jpi,jpj,jpk,jpts) ::   ztsn 
    6970      !!-------------------------------------------------------------------- 
    7071 
     
    8283 
    8384      !                                         ! thermosteric ssh 
    84       CALL eos( tn, sn0, zrhd )                       ! now in situ density using initial salinity 
     85      ztsn(:,:,:,jp_tem) = tn (:,:,:) 
     86      ztsn(:,:,:,jp_sal) = sn0(:,:,:) 
     87      CALL eos( ztsn, zrhd )                       ! now in situ density using initial salinity 
    8588      ! 
    8689      zbotpres(:,:) = 0.e0                            ! no atmospheric surface pressure, levitating sea-ice 
     
    9699       
    97100      !                                         ! steric sea surface height 
    98       CALL eos( tn, sn, zrhd, zrhop )                 ! now in situ and potential density 
     101      CALL eos( tsn, zrhd, zrhop )                 ! now in situ and potential density 
    99102      zrhop(:,:,jpk) = 0.e0 
    100103      CALL iom_put( 'rhop', zrhop ) 
Note: See TracChangeset for help on using the changeset viewer.