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 tags/nemo_v3_2/nemo_v3_2/NEMO/TOP_SRC/CFC – NEMO

source: tags/nemo_v3_2/nemo_v3_2/NEMO/TOP_SRC/CFC/trcctl_cfc.F90 @ 1878

Last change on this file since 1878 was 1878, checked in by flavoni, 14 years ago

initial test for nemogcm

File size: 3.5 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: trcctl_cfc.F90 1255 2009-01-13 10:20:17Z cetlod $
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) THEN
45          IF(lwp) THEN
46              WRITE (numout,*) ' ===>>>> : w a r n i n g '
47              WRITE (numout,*) ' =======   ============= '
48              WRITE (numout,*)                             &
49              &   ' STOP, change jp_cfc to 1 or 2 in par_CFC module ' 
50          END IF
51          STOP 'TRC_CTL'
52      END IF 
53
54      ! Check tracer names
55      ! ------------------
56      IF ( ctrcnm(jpc11) /= 'CFC11' .OR. ctrcnm(jpc12) /= 'CFC12' ) THEN
57            ctrcnm(jpc11) = 'CFC11'
58            ctrcnl(jpc11) = 'Chlorofuorocarbone 11 concentration'
59            ctrcnm(jpc12) = 'CFC12'
60            ctrcnl(jpc12) = 'Chlorofuorocarbone 12 concentration' 
61      ENDIF
62
63      IF(lwp) THEN
64         WRITE (numout,*) ' ===>>>> : w a r n i n g '
65         WRITE (numout,*) ' =======   ============= '
66         WRITE (numout,*) ' we force tracer names'
67         DO jl = 1, jp_cfc
68            jn = jp_cfc0 + jl - 1
69            WRITE(numout,*) ' tracer nb: ',jn,' name = ',ctrcnm(jn), ctrcnl(jn)
70         END DO
71         WRITE(numout,*) ' '
72      ENDIF 
73
74
75      ! Check tracer units
76      ! ------------------
77      DO jl = 1, jp_cfc
78         jn = jp_cfc0 + jl - 1
79        IF( ctrcun(jn) /= 'mole/m3' ) THEN
80            ctrcun(jn) = 'mole/m3'
81            IF(lwp) THEN
82               WRITE (numout,*) ' ===>>>> : w a r n i n g '
83               WRITE (numout,*) ' =======   ============= '
84               WRITE (numout,*) ' we force tracer unit'
85               WRITE(numout,*) ' tracer  ',ctrcnm(jn), 'UNIT= ',ctrcun(jn)
86               WRITE(numout,*) ' '
87            ENDIF
88         ENDIF
89      END DO             
90      !
91   END SUBROUTINE trc_ctl_cfc
92
93#else
94   !!----------------------------------------------------------------------
95   !!  Empty module :                                                No CFC
96   !!----------------------------------------------------------------------
97CONTAINS
98   SUBROUTINE trc_ctl_cfc                      ! Dummy routine
99   END SUBROUTINE trc_ctl_cfc
100#endif
101
102   !!======================================================================
103END MODULE trcctl_cfc
Note: See TracBrowser for help on using the repository browser.