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 3318 for branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/TOP_SRC/TRP/trczdf.F90 – NEMO

Ignore:
Timestamp:
2012-02-25T16:50:01+01:00 (12 years ago)
Author:
gm
Message:

Ediag branche: #927 split TRA/DYN trd computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/TOP_SRC/TRP/trczdf.F90

    r3294 r3318  
    44   !! Ocean Passive tracers : vertical diffusive trends  
    55   !!===================================================================== 
    6    !! History :  9.0  ! 2005-11 (G. Madec)  Original code 
    7    !!       NEMO 3.0  ! 2008-01  (C. Ethe, G. Madec)  merge TRC-TRA  
     6   !! History :  1.0  ! 2005-11 (G. Madec)  Original code 
     7   !!           3.0  ! 2008-01  (C. Ethe, G. Madec)  merge TRC-TRA  
    88   !!---------------------------------------------------------------------- 
    99#if defined key_top 
     
    1414   !!       ldf_ctl : initialization, namelist read, and parameters control 
    1515   !!---------------------------------------------------------------------- 
    16    USE oce_trc         ! ocean dynamics and active tracers 
    17    USE trc             ! ocean passive tracers variables 
    18    USE trcnam_trp      ! passive tracers transport namelist variables 
    19    USE trazdf_exp      ! vertical diffusion: explicit (tra_zdf_exp     routine) 
    20    USE trazdf_imp      ! vertical diffusion: implicit (tra_zdf_imp     routine) 
    21    USE trdmod_oce 
    22    USE trdtra 
    23    USE prtctl_trc      ! Print control 
     16   USE oce_trc       ! ocean dynamics and active tracers 
     17   USE trc           ! ocean passive tracers variables 
     18   USE trcnam_trp    ! passive tracers transport namelist variables 
     19   USE trazdf_exp    ! vertical diffusion: explicit (tra_zdf_exp     routine) 
     20   USE trazdf_imp    ! vertical diffusion: implicit (tra_zdf_imp     routine) 
     21   USE trd_oce       ! trends: ocean variables 
     22   USE trdtra        ! trends: tracer manager 
     23   USE prtctl_trc    ! Print control 
    2424 
    2525   IMPLICIT NONE 
    2626   PRIVATE 
    2727 
    28    PUBLIC   trc_zdf          ! called by step.F90  
    29    PUBLIC   trc_zdf_alloc    ! called by nemogcm.F90  
     28   PUBLIC   trc_zdf         ! called by step.F90  
     29   PUBLIC   trc_zdf_alloc   ! called by nemogcm.F90  
    3030 
    3131   INTEGER ::   nzdf = 0               ! type vertical diffusion algorithm used 
     
    5050      !!---------------------------------------------------------------------- 
    5151      ALLOCATE( r2dt(jpk) , STAT=trc_zdf_alloc ) 
    52       ! 
    5352      IF( trc_zdf_alloc /= 0 )   CALL ctl_warn('trc_zdf_alloc : failed to allocate array.') 
    54       ! 
    5553   END FUNCTION trc_zdf_alloc 
    5654 
     
    6260      !! ** Purpose :   compute the vertical ocean tracer physics. 
    6361      !!--------------------------------------------------------------------- 
    64       INTEGER, INTENT( in ) ::  kt      ! ocean time-step index 
     62      INTEGER, INTENT( in ) ::   kt   ! ocean time-step index 
    6563      ! 
    66       INTEGER               ::  jk, jn 
    67       CHARACTER (len=22)    :: charout 
     64      INTEGER            ::  jk, jn 
     65      CHARACTER (len=22) :: charout 
    6866      REAL(wp), POINTER, DIMENSION(:,:,:,:) ::   ztrtrd   ! 4D workspace 
    6967      !!--------------------------------------------------------------------- 
     
    106104               ztrtrd(:,:,jk,jn) = ( ( tra(:,:,jk,jn) - trb(:,:,jk,jn) ) / r2dt(jk) ) - ztrtrd(:,:,jk,jn) 
    107105            END DO 
    108             CALL trd_tra( kt, 'TRC', jn, jptra_trd_zdf, ztrtrd(:,:,:,jn) ) 
     106            CALL trd_tra( kt, 'TRC', jn, jptra_zdf, ztrtrd(:,:,:,jn) ) 
    109107         END DO 
    110108         CALL wrk_dealloc( jpi, jpj, jpk, jptra, ztrtrd ) 
Note: See TracChangeset for help on using the changeset viewer.