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/r5936_hadgem3_cplfld/NEMOGCM/NEMO/TOP_SRC – NEMO

source: branches/UKMO/r5936_hadgem3_cplfld/NEMOGCM/NEMO/TOP_SRC/trcwri.F90 @ 7138

Last change on this file since 7138 was 7138, checked in by jcastill, 7 years ago

Remove svn keywords

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