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 786 for branches/dev_001_GM/NEMO/OPA_SRC/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2008-01-10T18:11:23+01:00 (16 years ago)
Author:
gm
Message:

dev_001_GM - merge TRC-TRA on OPA only, trabbl & zpshde not done and trdmld not OK - compilation OK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_001_GM/NEMO/OPA_SRC/TRA/trasbc.F90

    r719 r786  
    11MODULE trasbc 
    2    !!============================================================================== 
     2   !!====================================================================== 
    33   !!                       ***  MODULE  trasbc  *** 
    44   !! Ocean active tracers:  surface boundary condition 
    5    !!============================================================================== 
    6    !! History :  8.2  !  98-10  (G. Madec, G. Roullet, M. Imbard)  Original code 
     5   !!====================================================================== 
     6   !! History :  OPA  !  98-10  (G. Madec, G. Roullet, M. Imbard)  Original code 
    77   !!            8.2  !  01-02  (D. Ludicone)  sea ice and free surface 
    8    !!            8.5  !  02-06  (G. Madec)  F90: Free form and module 
     8   !!   NEMO     1.0  !  02-06  (G. Madec)  F90: Free form and module 
     9   !!            2.4  !  08-01  (G. Madec) Merge TRA-TRC 
    910   !!---------------------------------------------------------------------- 
    1011 
     
    3132#  include "vectopt_loop_substitute.h90" 
    3233   !!---------------------------------------------------------------------- 
    33    !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    34    !! $Header$  
     34   !! NEMO/OPA 2.4 , LOCEAN-IPSL (2008)  
     35   !! $Id:$  
    3536   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3637   !!---------------------------------------------------------------------- 
     
    9899      !!              - save the trend it in ttrd ('key_trdtra') 
    99100      !!---------------------------------------------------------------------- 
    100       USE oce, ONLY :   ztrdt => ua   ! use ua as 3D workspace    
    101       USE oce, ONLY :   ztrds => va   ! use va as 3D workspace    
    102       !! 
    103101      INTEGER, INTENT(in) ::   kt     ! ocean time-step index 
    104102      !! 
    105103      INTEGER  ::   ji, jj                   ! dummy loop indices 
    106104      REAL(wp) ::   zta, zsa, zsrau, zse3t   ! temporary scalars 
     105      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   ztrdt, ztrds   ! 3D workspace 
    107106      !!---------------------------------------------------------------------- 
    108107 
     
    144143      END DO 
    145144 
    146       IF( l_trdtra ) THEN      ! save the sbc trends for diagnostic 
     145      IF( l_trdtra )   THEN                      ! save the horizontal diffusive trends for further diagnostics 
    147146         ztrdt(:,:,:) = ta(:,:,:) - ztrdt(:,:,:) 
    148147         ztrds(:,:,:) = sa(:,:,:) - ztrds(:,:,:) 
    149          CALL trd_mod(ztrdt, ztrds, jptra_trd_nsr, 'TRA', kt) 
     148         CALL trd_tra( kt, jp_tem, jpt_trd_qns, 'TRA', ptrd3d=ztrdt) 
     149         CALL trd_tra( kt, jp_sal, jpt_trd_qns, 'TRA', ptrd3d=ztrds) 
    150150      ENDIF 
    151151      ! 
Note: See TracChangeset for help on using the changeset viewer.