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

source: NEMO/trunk/src/TOP/MY_TRC/trcwri_my_trc.F90

Last change on this file was 14239, checked in by smasson, 20 months ago

trunk: replace key_iomput by key_xios

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