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 @ 6772

Last change on this file since 6772 was 6772, checked in by cbricaud, 8 years ago

clean in coarsening branch

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 && defined 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,ln_crs_top,ahtt_crs,ahtu_crs,ahtv_crs,ahtw_crs,jpi_crs,jpj_crs
17   USE iom, ONLY : iom_swap, iom_put
18   USE ieee_arithmetic
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC trc_wri_my_trc 
24
25#  include "top_substitute.h90"
26CONTAINS
27
28   SUBROUTINE trc_wri_my_trc
29      !!---------------------------------------------------------------------
30      !!                     ***  ROUTINE trc_wri_trc  ***
31      !!
32      !! ** Purpose :   output passive tracers fields
33      !!---------------------------------------------------------------------
34      CHARACTER (len=20)   :: cltra
35      INTEGER              :: jn
36      !!---------------------------------------------------------------------
37      IF( ln_crs_top ) CALL iom_swap( "nemo_crs" )
38
39      ! write the tracer concentrations in the file
40      ! ---------------------------------------
41      WHERE(ieee_is_nan(trn))trn=1.e30
42      DO jn = jp_myt0, jp_myt1
43         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
44         CALL iom_put( TRIM(cltra), trn(:,:,:,jn) )
45         ENDIF
46      END DO
47      !
48      IF( ln_crs_top ) 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.