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/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC – NEMO

source: branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcwri_my_trc.F90 @ 5105

Last change on this file since 5105 was 5105, checked in by cbricaud, 9 years ago

bug correction

File size: 2.7 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 oce_trc
16   USE crs, ONLY : ln_crs
17
18   IMPLICIT NONE
19   PRIVATE
20
21   PUBLIC trc_wri_my_trc 
22
23#  include "top_substitute.h90"
24CONTAINS
25
26   SUBROUTINE trc_wri_my_trc
27      !!---------------------------------------------------------------------
28      !!                     ***  ROUTINE trc_wri_trc  ***
29      !!
30      !! ** Purpose :   output passive tracers fields
31      !!---------------------------------------------------------------------
32      CHARACTER (len=20)   :: cltra
33      INTEGER              :: jn
34      !!---------------------------------------------------------------------
35      IF( ln_crs ) CALL iom_swap( "nemo_crs" )
36 
37      ! write the tracer concentrations in the file
38      ! ---------------------------------------
39      DO jn = jp_myt0, jp_myt1
40         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
41         IF( lk_vvl ) THEN
42            CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) )
43         ELSE
44            CALL iom_put( TRIM(cltra), trn(:,:,:,jn) )
45         ENDIF
46      END DO
47      !
48      IF( ln_crs ) CALL iom_swap( "nemo" )
49      !
50   END SUBROUTINE trc_wri_my_trc
51
52#else
53   !!----------------------------------------------------------------------
54   !!  Dummy module :                                     No passive tracer
55   !!----------------------------------------------------------------------
56   PUBLIC trc_wri_my_trc
57CONTAINS
58   SUBROUTINE trc_wri_my_trc                     ! Empty routine 
59   END SUBROUTINE trc_wri_my_trc
60#endif
61
62   !!----------------------------------------------------------------------
63   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
64   !! $Id: trcwri_my_trc.F90 3160 2011-11-20 14:27:18Z cetlod $
65   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
66   !!======================================================================
67END MODULE trcwri_my_trc
Note: See TracBrowser for help on using the repository browser.