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.
trcwri.F90 in branches/UKMO/AMM15_v3_6_STABLE_package/NEMOGCM/NEMO/TOP_SRC – NEMO

source: branches/UKMO/AMM15_v3_6_STABLE_package/NEMOGCM/NEMO/TOP_SRC/trcwri.F90 @ 8058

Last change on this file since 8058 was 8058, checked in by jgraham, 7 years ago

Clear keywords

File size: 3.4 KB
RevLine 
[1457]1MODULE trcwri
[3294]2   !!======================================================================
[1457]3   !!                       *** MODULE trcwri ***
[1836]4   !!    TOP :   Output of passive tracers
[3294]5   !!======================================================================
[1836]6   !! History :   1.0  !  2009-05 (C. Ethe)  Original code
[1457]7   !!----------------------------------------------------------------------
[3294]8#if defined key_top && defined key_iomput
[1457]9   !!----------------------------------------------------------------------
[3294]10   !!   'key_top'                                           TOP models
[1457]11   !!----------------------------------------------------------------------
[1836]12   !! trc_wri_trc   :  outputs of concentration fields
[1457]13   !!----------------------------------------------------------------------
[3294]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
[3295]19   USE trcwri_pisces
[3680]20   USE trcwri_cfc
21   USE trcwri_c14b
22   USE trcwri_my_trc
[1457]23
24   IMPLICIT NONE
25   PRIVATE
26
27   PUBLIC trc_wri     
28
29   !! * Substitutions
30#  include "top_substitute.h90"
31
32CONTAINS
33
[1836]34   SUBROUTINE trc_wri( kt )
[1457]35      !!---------------------------------------------------------------------
36      !!                     ***  ROUTINE trc_wri  ***
[1836]37      !!
38      !! ** Purpose :   output passive tracers fields and dynamical trends
39      !!---------------------------------------------------------------------
[3750]40      INTEGER, INTENT( in )     :: kt
[1836]41      !
[3294]42      INTEGER                   :: jn
43      CHARACTER (len=20)        :: cltra
44      CHARACTER (len=40)        :: clhstnam
[1656]45      INTEGER ::   inum = 11            ! temporary logical unit
[1457]46      !!---------------------------------------------------------------------
[3750]47      !
48      IF( nn_timing == 1 )  CALL timing_start('trc_wri')
49      !
[3294]50      IF( lk_offline .AND. kt == nittrc000 .AND. lwp ) THEN    ! WRITE root name in date.file for use by postpro
[2528]51         CALL dia_nam( clhstnam, nn_writetrc,' ' )
52         CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea )
53         WRITE(inum,*) clhstnam
54         CLOSE(inum)
[1656]55      ENDIF
[1457]56      ! write the tracer concentrations in the file
57      ! ---------------------------------------
[3680]58      IF( lk_pisces  )   CALL trc_wri_pisces     ! PISCES
59      IF( lk_cfc     )   CALL trc_wri_cfc        ! surface fluxes of CFC
60      IF( lk_c14b    )   CALL trc_wri_c14b       ! surface fluxes of C14
61      IF( lk_my_trc  )   CALL trc_wri_my_trc     ! MY_TRC  tracers
[1457]62      !
[3750]63      IF( nn_timing == 1 )  CALL timing_stop('trc_wri')
64      !
65   END SUBROUTINE trc_wri
[1457]66
67#else
68   !!----------------------------------------------------------------------
69   !!  Dummy module :                                     No passive tracer
70   !!----------------------------------------------------------------------
71   PUBLIC trc_wri
72CONTAINS
73   SUBROUTINE trc_wri( kt )                     ! Empty routine   
74   INTEGER, INTENT(in) :: kt
75   END SUBROUTINE trc_wri
76#endif
77
[2528]78   !!----------------------------------------------------------------------
79   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
[8058]80   !! $Id$
[2528]81   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
[1457]82   !!======================================================================
83END MODULE trcwri
Note: See TracBrowser for help on using the repository browser.