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.
trcctl_cfc.F90 in trunk/NEMO/TOP_SRC/CFC – NEMO

source: trunk/NEMO/TOP_SRC/CFC/trcctl_cfc.F90 @ 2423

Last change on this file since 2423 was 2423, checked in by cetlod, 13 years ago

v3.2:use of standard print control in TOP

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1MODULE trcctl_cfc
2   !!======================================================================
3   !!                         ***  trcctl.cfc.F90  ***
4   !! TOP :                Control of CFC chemical model
5   !!======================================================================
6   !!----------------------------------------------------------------------
7   !! History :   1.0  !  2005-10 (C. Ethe) assign a parameter to name individual tracers
8   !!----------------------------------------------------------------------
9
10#if defined key_cfc
11
12   USE oce_trc
13   USE trc
14
15
16   IMPLICIT NONE
17   PRIVATE
18
19   PUBLIC trc_ctl_cfc      ! called by ???
20
21   !!----------------------------------------------------------------------
22   !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)
23   !! $Id$
24   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
25   !!----------------------------------------------------------------------
26
27CONTAINS
28
29   SUBROUTINE trc_ctl_cfc
30      !!----------------------------------------------------------------------
31      !!                     ***  ROUTINE trc_ctl_cfc  ***
32      !!
33      !! ** Purpose :   control the cpp options, namelist and files
34      !!----------------------------------------------------------------------
35      INTEGER :: jl, jn
36
37      IF(lwp) THEN
38          WRITE(numout,*) ' CFC Model '
39          WRITE(numout,*) ' '
40      ENDIF
41
42      ! Check number of tracers
43      ! -----------------------   
44      IF( jp_cfc > 2 ) CALL ctl_stop( ' change jp_cfc to 1 or 2 in par_cfc.F90.' )
45
46      ! Check tracer names
47      ! ------------------
48      ctrcnm(jpc11) = 'CFC11'
49      ctrcnl(jpc11) = 'Chlorofuorocarbone 11 concentration'
50
51      IF ( jp_cfc == 2 ) THEN
52          ctrcnm(jpc12) = 'CFC12'
53          ctrcnl(jpc12) = 'Chlorofuorocarbone 12 concentration'
54      ENDIF
55
56      IF(lwp) THEN
57         CALL ctl_warn( ' We force tracer names ' )
58         DO jl = 1, jp_cfc
59            jn = jp_cfc0 + jl - 1
60            WRITE(numout,*) ' tracer nb: ',jn,' name = ',ctrcnm(jn), ctrcnl(jn)
61         END DO
62         WRITE(numout,*) ' '
63      ENDIF
64
65
66      ! Check tracer units
67      ! ------------------
68      DO jl = 1, jp_cfc
69         jn = jp_cfc0 + jl - 1
70        IF( ctrcun(jn) /= 'mole/m3' ) THEN
71            ctrcun(jn) = 'mole/m3'
72            IF(lwp) THEN
73               CALL ctl_warn( ' We force tracer units ' )
74               WRITE(numout,*) ' tracer  ',ctrcnm(jn), 'UNIT= ',ctrcun(jn)
75               WRITE(numout,*) ' '
76            ENDIF
77         ENDIF
78      END DO             
79      !
80   END SUBROUTINE trc_ctl_cfc
81
82#else
83   !!----------------------------------------------------------------------
84   !!  Empty module :                                                No CFC
85   !!----------------------------------------------------------------------
86CONTAINS
87   SUBROUTINE trc_ctl_cfc                      ! Dummy routine
88   END SUBROUTINE trc_ctl_cfc
89#endif
90
91   !!======================================================================
92END MODULE trcctl_cfc
Note: See TracBrowser for help on using the repository browser.