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/CNRS/dev_r4826_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

source: branches/CNRS/dev_r4826_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/trcwri_pisces.F90 @ 5289

Last change on this file since 5289 was 5289, checked in by aumont, 9 years ago

various bug fixes and updates of PISCES quota

File size: 3.3 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   !!             3.6  !  2015-05  (O. Aumont) PISCES quota
8   !!----------------------------------------------------------------------
9#if defined key_top && defined key_iomput && ( defined key_pisces || defined key_pisces_reduced || defined key_pisces_quota)
10   !!----------------------------------------------------------------------
11   !!   'key_pisces*'                     PISCES model
12   !!----------------------------------------------------------------------
13   !! trc_wri_pisces   :  outputs of concentration fields
14   !!----------------------------------------------------------------------
15   USE trc         ! passive tracers common variables
16   USE sms_pisces  ! PISCES variables
17   USE iom         ! I/O manager
18
19   IMPLICIT NONE
20   PRIVATE
21
22   PUBLIC trc_wri_pisces 
23
24#  include "top_substitute.h90"
25CONTAINS
26
27   SUBROUTINE trc_wri_pisces
28      !!---------------------------------------------------------------------
29      !!                     ***  ROUTINE trc_wri_trc  ***
30      !!
31      !! ** Purpose :   output passive tracers fields
32      !!---------------------------------------------------------------------
33      CHARACTER (len=20)   :: cltra
34      REAL(wp)             :: zrfact
35      INTEGER              :: jn
36      !!---------------------------------------------------------------------
37 
38      ! write the tracer concentrations in the file
39      ! ---------------------------------------
40#if defined key_pisces_reduced
41      DO jn = jp_pcs0, jp_pcs1
42         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
43         IF( lk_vvl ) THEN
44            CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) )
45         ELSE
46            CALL iom_put( cltra, trn(:,:,:,jn) )
47         ENDIF
48         CALL iom_put( cltra, trn(:,:,:,jn) * zrfact )
49      END DO
50#else
51      DO jn = jp_pcs0, jp_pcs1
52         zrfact = 1.0e+6 
53         IF( jn == jpno3 .OR. jn == jpnh4 ) zrfact = rno3 * 1.0e+6 
54         IF( jn == jppo4  )                 zrfact = po4r * 1.0e+6
55         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
56         IF( lk_vvl ) THEN
57            CALL iom_put( cltra, trn(:,:,:,jn) * fse3t_n(:,:,:) * zrfact )
58         ELSE
59            CALL iom_put( cltra, trn(:,:,:,jn) * zrfact )
60         ENDIF
61      END DO
62#endif
63      !
64   END SUBROUTINE trc_wri_pisces
65
66#else
67   !!----------------------------------------------------------------------
68   !!  Dummy module :                                     No passive tracer
69   !!----------------------------------------------------------------------
70   PUBLIC trc_wri_pisces
71CONTAINS
72   SUBROUTINE trc_wri_pisces                     ! Empty routine 
73   END SUBROUTINE trc_wri_pisces
74#endif
75
76   !!----------------------------------------------------------------------
77   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
78   !! $Id: trcwri_pisces.F90 3160 2011-11-20 14:27:18Z cetlod $
79   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
80   !!======================================================================
81END MODULE trcwri_pisces
Note: See TracBrowser for help on using the repository browser.