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 216 for trunk/NEMO/OPA_SRC/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2005-03-17T15:02:38+01:00 (19 years ago)
Author:
opalod
Message:

CT : UPDATE151 : New trends organization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/trasbc.F90

    r106 r216  
    1313   USE ocesbc          ! surface thermohaline fluxes 
    1414   USE phycst          ! physical constant 
    15    USE traqsr          ! ??? 
    16    USE trdtra_oce      ! ocean active tracer trends  
     15   USE traqsr          ! solar radiation penetration 
     16   USE trdmod          ! ocean trends  
     17   USE trdmod_oce      ! ocean variables trends 
    1718   USE in_out_manager  ! I/O manager 
    1819 
     
    7576      !!   8.2  !  01-02  (D. Ludicone)  sea ice and free surface 
    7677      !!   8.5  !  02-06  (G. Madec)  F90: Free form and module 
     78      !!   9.0  !  04-08  (C. Talandier) New trends organization 
    7779      !!---------------------------------------------------------------------- 
     80      !! * Modules used      
     81      USE oce, ONLY :    ztdta => ua,      & ! use ua as 3D workspace    
     82                         ztdsa => va         ! use va as 3D workspace    
     83 
    7884      !! * Arguments 
    7985      INTEGER, INTENT( in ) ::   kt          ! ocean time-step index 
     
    96102#endif 
    97103 
     104      ! Save ta and sa trends 
     105      IF( l_trdtra )   THEN 
     106         ztdta(:,:,:) = ta(:,:,:)  
     107         ztdsa(:,:,:) = sa(:,:,:)  
     108      ENDIF 
     109 
    98110      IF( .NOT.ln_traqsr )   qsr(:,:) = 0.e0   ! no solar radiation penetration 
    99111 
     
    113125            ta(ji,jj,1) = ta(ji,jj,1) + zta 
    114126            sa(ji,jj,1) = sa(ji,jj,1) + zsa 
    115 #if defined key_trdtra || defined key_trdmld 
    116             ! save the trend associated to (t,s) sea surface boundary condition 
    117             flxtrd(ji,jj,1) = zta 
    118             flxtrd(ji,jj,2) = zsa 
    119 #endif 
    120127         END DO 
    121128      END DO 
     129 
     130      ! save the trends for diagnostic 
     131      ! sea surface boundary condition tracers trends 
     132      IF( l_trdtra )   THEN 
     133         ztdta(:,:,:) = ta(:,:,:) - ztdta(:,:,:) 
     134         ztdsa(:,:,:) = sa(:,:,:) - ztdsa(:,:,:) 
     135         CALL trd_mod(ztdta, ztdsa, jpttdnsr, 'TRA', kt) 
     136      ENDIF 
    122137       
    123138      IF(l_ctl) THEN         ! print mean trends (used for debugging) 
Note: See TracChangeset for help on using the changeset viewer.