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 1175 for trunk/NEMO/TOP_SRC/TRP/trczdf_exp.F90 – NEMO

Ignore:
Timestamp:
2008-09-11T18:26:34+02:00 (16 years ago)
Author:
cetlod
Message:

update transport modules to take into account new trends organization, see ticket:248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/TRP/trczdf_exp.F90

    r1152 r1175  
    44   !! Ocean passive tracers:  vertical component of the tracer mixing trend using 
    55   !!                        an explicit time-stepping (time spllitting scheme) 
    6    !!============================================================================== 
     6   !!====================================================================== 
     7   !! History :  6.0  !  90-10  (B. Blanke)  Original code 
     8   !!            7.0  !  91-11  (G. Madec) 
     9   !!                 !  92-06  (M. Imbard)  correction on tracer trend loops 
     10   !!                 !  96-01  (G. Madec)  statement function for e3 
     11   !!                 !  97-05  (G. Madec)  vertical component of isopycnal 
     12   !!                 !  97-07  (G. Madec)  geopotential diffusion in s-coord 
     13   !!                 !  98-03  (L. Bopp MA Foujols) passive tracer generalisation 
     14   !!                 !  00-05  (MA Foujols) add lbc for tracer trends 
     15   !!                 !  00-06  (O Aumont)  correct isopycnal scheme suppress 
     16   !!                 !                     avt multiple correction 
     17   !!                 !  00-08  (G. Madec)  double diffusive mixing 
     18   !!            8.5  !  02-08  (G. Madec)  F90: Free form and module 
     19   !!            9.0  !  04-03  (C. Ethe )  adapted for passive tracers 
     20   !!                 !  07-02  (C. Deltel)  Diagnose ML trends for passive tracers 
     21   !!---------------------------------------------------------------------- 
    722#if defined key_top 
    823   !!---------------------------------------------------------------------- 
     
    1732   USE trctrp_lec       ! passive tracers transport 
    1833   USE prtctl_trc          ! Print control for debbuging 
     34   USE trdmld_trc 
     35   USE trdmld_trc_oce 
    1936 
    2037   IMPLICIT NONE 
     
    5673      !! 
    5774      !! ** Action : - Update tra with the before vertical diffusion trend 
    58       !!             - Save the trends  in trtrd ('key_trc_diatrd') 
     75      !!             - Save the trends ('key_trdmld_trc') 
    5976      !! 
    60       !! History : 
    61       !!   6.0  !  90-10  (B. Blanke)  Original code 
    62       !!   7.0  !  91-11  (G. Madec) 
    63       !!        !  92-06  (M. Imbard)  correction on tracer trend loops 
    64       !!        !  96-01  (G. Madec)  statement function for e3 
    65       !!        !  97-05  (G. Madec)  vertical component of isopycnal 
    66       !!        !  97-07  (G. Madec)  geopotential diffusion in s-coord 
    67       !!        !  98-03  (L. Bopp MA Foujols) passive tracer generalisation 
    68       !!        !  00-05  (MA Foujols) add lbc for tracer trends 
    69       !!        !  00-06  (O Aumont)  correct isopycnal scheme suppress 
    70       !!        !                     avt multiple correction 
    71       !!        !  00-08  (G. Madec)  double diffusive mixing 
    72       !!   8.5  !  02-08  (G. Madec)  F90: Free form and module 
    73       !!   9.0  !  04-03  (C. Ethe )  adapted for passive tracers 
    7477      !!--------------------------------------------------------------------- 
     78      USE oce_trc, ONLY :   ztrtrd => ua    ! use ua as 3D workspace 
    7579      !! * Arguments 
    7680      INTEGER, INTENT( in ) ::   kt           ! ocean time-step index 
     
    9397      ENDIF 
    9498 
     99      IF( l_trdtrc ) THEN 
     100         STOP 'trczdf_exp: this was never validated, please comment this line to proceed...' 
     101      ENDIF 
     102 
    95103      ! 0. Local constant initialization 
    96104      ! -------------------------------- 
     
    110118 
    111119      DO jn = 1, jptra 
    112  
     120         ! 
     121         IF( l_trdtrc ) ztrtrd(:,:,:) = tra(:,:,:,jn)   ! save trends 
    113122         !                                                ! =============== 
    114123         DO jj = 2, jpjm1                                 !  Vertical slab 
     
    163172         END DO                                           !   End of slab 
    164173         !                                                ! =============== 
    165       END DO 
     174         IF( l_trdtrc ) THEN 
     175            ztrtrd(:,:,:) = tra(:,:,:,jn) - ztrtrd(:,:,:) 
     176            IF (luttrd(jn)) CALL trd_mod_trc( ztrtrd, jn, jptrc_trd_zdf, kt ) 
     177         END IF 
     178 
     179         !                                                    ! =========== 
     180      END DO                                                  ! tracer loop 
     181      !                                                       ! =========== 
    166182 
    167183      IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
Note: See TracChangeset for help on using the changeset viewer.