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 3294 for trunk/NEMOGCM/NEMO/TOP_SRC/trcwri.F90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/trcwri.F90

    r2567 r3294  
    11MODULE trcwri 
    2    !!=================================================================================== 
     2   !!====================================================================== 
    33   !!                       *** MODULE trcwri *** 
    44   !!    TOP :   Output of passive tracers 
    5    !!==================================================================================== 
     5   !!====================================================================== 
    66   !! History :   1.0  !  2009-05 (C. Ethe)  Original code 
    77   !!---------------------------------------------------------------------- 
    8 #if defined key_top &&  defined key_iomput 
     8#if defined key_top && defined key_iomput 
    99   !!---------------------------------------------------------------------- 
    10    !!   'key_top' && 'key_iomput'                              TOP models 
     10   !!   'key_top'                                           TOP models 
    1111   !!---------------------------------------------------------------------- 
    1212   !! trc_wri_trc   :  outputs of concentration fields 
    1313   !!---------------------------------------------------------------------- 
    14    USE dom_oce         ! ocean space and time domain variables 
    15    USE oce_trc 
    16    USE trc 
    17    USE iom 
    18    USE dianam 
     14   USE dom_oce     ! ocean space and time domain variables 
     15   USE oce_trc     ! shared variables between ocean and passive tracers 
     16   USE trc         ! passive tracers common variables  
     17   USE iom         ! I/O manager 
     18   USE dianam      ! Output file name 
    1919 
    2020   IMPLICIT NONE 
     
    3636      INTEGER, INTENT( in ) :: kt 
    3737      !!--------------------------------------------------------------------- 
    38  
     38      ! 
     39      IF( nn_timing == 1 )  CALL timing_start('trc_wri') 
    3940      ! 
    4041      CALL iom_setkt  ( kt + nn_dttrc - 1 )       ! set the passive tracer time step 
    4142      CALL trc_wri_trc( kt              )       ! outputs for tracer concentration 
    4243      CALL iom_setkt  ( kt              )       ! set the model time step 
     44      ! 
     45      IF( nn_timing == 1 )  CALL timing_stop('trc_wri') 
    4346      ! 
    4447   END SUBROUTINE trc_wri 
     
    5053      !! ** Purpose :   output passive tracers fields  
    5154      !!--------------------------------------------------------------------- 
    52       INTEGER, INTENT( in ) :: kt       ! ocean time-step 
    53       INTEGER               :: jn 
    54       CHARACTER (len=20)    :: cltra 
    55       CHARACTER (len=40) :: clhstnam 
     55      INTEGER, INTENT( in )     :: kt       ! ocean time-step 
     56      INTEGER                   :: jn 
     57      CHARACTER (len=20)        :: cltra 
     58      CHARACTER (len=40)        :: clhstnam 
    5659      INTEGER ::   inum = 11            ! temporary logical unit 
    5760      !!--------------------------------------------------------------------- 
    5861  
    59       IF( lk_offline .AND. kt == nit000 .AND. lwp ) THEN    ! WRITE root name in date.file for use by postpro 
     62      IF( lk_offline .AND. kt == nittrc000 .AND. lwp ) THEN    ! WRITE root name in date.file for use by postpro 
    6063         CALL dia_nam( clhstnam, nn_writetrc,' ' ) 
    6164         CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
Note: See TracChangeset for help on using the changeset viewer.