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 branches/2013/dev_MERGE_2013/NEMOGCM/NEMO/TOP_SRC/MY_TRC – NEMO

source: branches/2013/dev_MERGE_2013/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcwri_my_trc.F90 @ 4292

Last change on this file since 4292 was 4292, checked in by cetlod, 10 years ago

dev_MERGE_2013 : 1st step of the merge, see ticket #1185

File size: 2.5 KB
Line 
1MODULE trcwri_my_trc
2   !!======================================================================
3   !!                       *** MODULE trcwri ***
4   !!    my_trc :   Output of my_trc tracers
5   !!======================================================================
6   !! History :   1.0  !  2009-05 (C. Ethe)  Original code
7   !!----------------------------------------------------------------------
8#if defined key_top && key_my_trc && defined key_iomput
9   !!----------------------------------------------------------------------
10   !!   'key_my_trc'                                           my_trc model
11   !!----------------------------------------------------------------------
12   !! trc_wri_my_trc   :  outputs of concentration fields
13   !!----------------------------------------------------------------------
14   USE trc         ! passive tracers common variables
15   USE iom         ! I/O manager
16
17   IMPLICIT NONE
18   PRIVATE
19
20   PUBLIC trc_wri_my_trc 
21
22CONTAINS
23
24   SUBROUTINE trc_wri_my_trc
25      !!---------------------------------------------------------------------
26      !!                     ***  ROUTINE trc_wri_trc  ***
27      !!
28      !! ** Purpose :   output passive tracers fields
29      !!---------------------------------------------------------------------
30      CHARACTER (len=20)   :: cltra
31      INTEGER              :: jn
32      !!---------------------------------------------------------------------
33 
34      ! write the tracer concentrations in the file
35      ! ---------------------------------------
36      DO jn = jp_myt0, jp_myt1
37         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
38         IF( lk_vvl ) THEN
39            CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) )
40         ELSE
41            CALL iom_put( cltra, trn(:,:,:,jn) )
42         ENDIF
43      END DO
44      !
45   END SUBROUTINE trc_wri_my_trc
46
47#else
48   !!----------------------------------------------------------------------
49   !!  Dummy module :                                     No passive tracer
50   !!----------------------------------------------------------------------
51   PUBLIC trc_wri_my_trc
52CONTAINS
53   SUBROUTINE trc_wri_my_trc                     ! Empty routine 
54   END SUBROUTINE trc_wri_my_trc
55#endif
56
57   !!----------------------------------------------------------------------
58   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
59   !! $Id: trcwri_my_trc.F90 3160 2011-11-20 14:27:18Z cetlod $
60   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
61   !!======================================================================
62END MODULE trcwri_my_trc
Note: See TracBrowser for help on using the repository browser.