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

source: trunk/NEMO/TOP_SRC/trcwri.F90 @ 1606

Last change on this file since 1606 was 1457, checked in by cetlod, 15 years ago

distribution of iom_put in TOP routines, see ticket:437

File size: 2.7 KB
Line 
1MODULE trcwri
2   !!======================================================================
3   !!                       *** MODULE trcwri ***
4   !!    TOP :   Output of passive tracers
5   !!======================================================================
6   !!             1.0  ! 
7   !!                  !  2009-05 (C. Ethe )
8   !!----------------------------------------------------------------------
9#if defined key_top &&  defined key_iomput
10   !!----------------------------------------------------------------------
11   !!   'key_top' && 'key_iomput'                              TOP models
12   !!----------------------------------------------------------------------
13   !! trc_wri     :  outputs of concentration fields
14   !!----------------------------------------------------------------------
15   USE trc
16   USE iom
17
18   IMPLICIT NONE
19   PRIVATE
20
21   PUBLIC trc_wri     
22
23   !! * Substitutions
24#  include "top_substitute.h90"
25   !!----------------------------------------------------------------------
26   !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)
27   !! $Id: trcdia.F90 1450 2009-05-15 14:12:12Z cetlod $
28   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
29   !!----------------------------------------------------------------------
30
31CONTAINS
32
33   SUBROUTINE trc_wri( kt ) 
34      !!---------------------------------------------------------------------
35      !!                     ***  ROUTINE trc_wri  ***
36      !!
37      !! ** Purpose :   output passive tracers fields
38      !!---------------------------------------------------------------------
39      INTEGER, INTENT( in ) :: kt       ! ocean time-step
40      INTEGER               :: jn
41      CHARACTER (len=20)    :: cltra
42      !!---------------------------------------------------------------------
43 
44      ! Initialisation
45      ! --------------
46
47      CALL iom_setkt( kt + ndttrc - 1 ) ! set the passive tracer time step
48
49      ! write the tracer concentrations in the file
50      ! ---------------------------------------
51      DO jn = 1, jptra
52         cltra = ctrcnm(jn)                   ! short title for tracer
53         CALL iom_put( cltra, trn(:,:,:,jn) )
54      END DO
55      !
56      CALL iom_setkt( kt )       ! set the model time step
57
58      !
59   END SUBROUTINE trc_wri
60
61#else
62   !!----------------------------------------------------------------------
63   !!  Dummy module :                                     No passive tracer
64   !!----------------------------------------------------------------------
65   PUBLIC trc_wri
66CONTAINS
67   SUBROUTINE trc_wri( kt )                     ! Empty routine   
68   INTEGER, INTENT(in) :: kt
69   END SUBROUTINE trc_wri
70
71#endif
72
73   !!======================================================================
74END MODULE trcwri
Note: See TracBrowser for help on using the repository browser.