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

Last change on this file since 1910 was 1801, checked in by cetlod, 14 years ago

Reorganisation of restart part of TOP component, see ticket:644

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