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_pisces.F90 in branches/2012/dev_NOC_MERCATOR_2012/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/2012/dev_NOC_MERCATOR_2012/NEMOGCM/NEMO/TOP_SRC/PISCES/trcwri_pisces.F90 @ 3649

Last change on this file since 3649 was 3295, checked in by cetlod, 12 years ago

trunk:A few additional diagnostics added in PISCES

File size: 2.6 KB
Line 
1MODULE trcwri_pisces
2   !!======================================================================
3   !!                       *** MODULE trcwri ***
4   !!    PISCES :   Output of PISCES tracers
5   !!======================================================================
6   !! History :   1.0  !  2009-05 (C. Ethe)  Original code
7   !!----------------------------------------------------------------------
8#if defined key_top && key_pisces && defined key_iomput
9   !!----------------------------------------------------------------------
10   !!   'key_pisces'                                           PISCES model
11   !!----------------------------------------------------------------------
12   !! trc_wri_pisces   :  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_pisces 
21
22CONTAINS
23
24   SUBROUTINE trc_wri_pisces
25      !!---------------------------------------------------------------------
26      !!                     ***  ROUTINE trc_wri_trc  ***
27      !!
28      !! ** Purpose :   output passive tracers fields
29      !!---------------------------------------------------------------------
30      CHARACTER (len=20)   :: cltra
31      REAL(wp)             :: zrfact
32      INTEGER              :: jn
33      !!---------------------------------------------------------------------
34 
35      ! write the tracer concentrations in the file
36      ! ---------------------------------------
37      DO jn = 1, jptra
38         zrfact = 1.0e+6 
39         IF( jn == jpno3 .OR. jn == jpnh4 ) zrfact = 1.0e+6 / 7.6
40         IF( jn == jppo4  )                 zrfact = 1.0e+6 / 122.
41         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
42         CALL iom_put( cltra, trn(:,:,:,jn) * zrfact )
43      END DO
44      !
45   END SUBROUTINE trc_wri_pisces
46
47#else
48   !!----------------------------------------------------------------------
49   !!  Dummy module :                                     No passive tracer
50   !!----------------------------------------------------------------------
51   PUBLIC trc_wri_pisces
52CONTAINS
53   SUBROUTINE trc_wri_pisces                     ! Empty routine 
54   END SUBROUTINE trc_wri_pisces
55#endif
56
57   !!----------------------------------------------------------------------
58   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
59   !! $Id: trcwri_pisces.F90 3160 2011-11-20 14:27:18Z cetlod $
60   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
61   !!======================================================================
62END MODULE trcwri_pisces
Note: See TracBrowser for help on using the repository browser.