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_cfc.F90 in NEMO/trunk/src/TOP/CFC – NEMO

source: NEMO/trunk/src/TOP/CFC/trcwri_cfc.F90

Last change on this file was 14239, checked in by smasson, 3 years ago

trunk: replace key_iomput by key_xios

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1MODULE trcwri_cfc
2   !!======================================================================
3   !!                       *** MODULE trcwri ***
4   !!    cfc :   Output of cfc tracers
5   !!======================================================================
6   !! History :   1.0  !  2009-05 (C. Ethe)  Original code
7   !!----------------------------------------------------------------------
8#if defined key_top && defined key_xios
9   !!----------------------------------------------------------------------
10   !! trc_wri_cfc   :  outputs of concentration fields
11   !!----------------------------------------------------------------------
12   USE trc         ! passive tracers common variables
13   USE iom         ! I/O manager
14
15   IMPLICIT NONE
16   PRIVATE
17
18   PUBLIC trc_wri_cfc 
19
20CONTAINS
21
22   SUBROUTINE trc_wri_cfc( Kmm )
23      !!---------------------------------------------------------------------
24      !!                     ***  ROUTINE trc_wri_trc  ***
25      !!
26      !! ** Purpose :   output passive tracers fields
27      !!---------------------------------------------------------------------
28      INTEGER, INTENT(in)  :: Kmm   ! time level indices
29      CHARACTER (len=20)   :: cltra
30      INTEGER              :: jn
31      !!---------------------------------------------------------------------
32 
33      ! write the tracer concentrations in the file
34      ! ---------------------------------------
35      DO jn = jp_cfc0, jp_cfc1
36         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
37         CALL iom_put( cltra, tr(:,:,:,jn,Kmm) )
38      END DO
39      !
40   END SUBROUTINE trc_wri_cfc
41
42#else
43   !!----------------------------------------------------------------------
44   !!  Dummy module :                                     No passive tracer
45   !!----------------------------------------------------------------------
46   PUBLIC trc_wri_cfc
47CONTAINS
48   SUBROUTINE trc_wri_cfc                     ! Empty routine 
49   END SUBROUTINE trc_wri_cfc
50#endif
51
52   !!----------------------------------------------------------------------
53   !! NEMO/TOP 4.0 , NEMO Consortium (2018)
54   !! $Id$
55   !! Software governed by the CeCILL license (see ./LICENSE)
56   !!======================================================================
57END MODULE trcwri_cfc
Note: See TracBrowser for help on using the repository browser.