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_c14b.F90 in tags/nemo_v3_2/nemo_v3_2/NEMO/TOP_SRC/C14b – NEMO

source: tags/nemo_v3_2/nemo_v3_2/NEMO/TOP_SRC/C14b/trcctl_c14b.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.2 KB
Line 
1MODULE trcctl_c14b
2   !!======================================================================
3   !!                         ***  trcctl_c14b.F90  ***
4   !! TOP :                Control of C14 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_c14b
11
12   USE oce_trc
13   USE trc
14
15
16   IMPLICIT NONE
17   PRIVATE
18
19   PUBLIC trc_ctl_c14b      ! called by ???
20
21   !!----------------------------------------------------------------------
22   !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)
23   !! $Id: trcctl_cfc.F90 1146 2008-06-25 11:42:56Z rblod $
24   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
25   !!----------------------------------------------------------------------
26
27CONTAINS
28
29   SUBROUTINE trc_ctl_c14b
30      !!----------------------------------------------------------------------
31      !!                     ***  ROUTINE trc_ctl_c14b  ***
32      !!
33      !! ** Purpose :   control the cpp options, namelist and files
34      !!----------------------------------------------------------------------
35
36      IF(lwp) THEN
37          WRITE(numout,*) ' C14 bomb Model '
38          WRITE(numout,*) ' '
39      ENDIF
40
41      ! Check number of tracers
42      ! -----------------------   
43      IF( jp_c14b > 1) THEN
44          IF(lwp) THEN
45              WRITE (numout,*) ' ===>>>> : w a r n i n g '
46              WRITE (numout,*) ' =======   ============= '
47              WRITE (numout,*)                             &
48              &   ' STOP, change jp_c14b to 1 in par_C14b module ' 
49          END IF
50          STOP 'TRC_CTL'
51      END IF 
52
53      ! Check tracer names
54      ! ------------------
55      IF ( ctrcnm(jpc14) /= 'C14B' ) THEN
56           ctrcnm(jpc14)  = 'C14B'
57           ctrcnl(jpc14)  = 'Bomb C14 concentration'
58      ENDIF
59
60      IF(lwp) THEN
61         WRITE (numout,*) ' ===>>>> : w a r n i n g '
62         WRITE (numout,*) ' =======   ============= '
63         WRITE (numout,*) ' we force tracer names'
64         WRITE(numout,*) ' tracer nb: ',jpc14,' name = ',ctrcnm(jpc14), ctrcnl(jpc14)
65         WRITE(numout,*) ' '
66      ENDIF 
67
68
69      ! Check tracer units
70      ! ------------------
71      IF( ctrcun(jpc14) /= 'ration' ) THEN
72          ctrcun(jpc14) = 'ration'
73          IF(lwp) THEN
74             WRITE (numout,*) ' ===>>>> : w a r n i n g '
75             WRITE (numout,*) ' =======   ============= '
76             WRITE (numout,*) ' we force tracer unit'
77             WRITE(numout,*) ' tracer  ',ctrcnm(jpc14), 'UNIT= ',ctrcun(jpc14)
78             WRITE(numout,*) ' '
79          ENDIF
80       ENDIF 
81      !
82   END SUBROUTINE trc_ctl_c14b
83
84#else
85   !!----------------------------------------------------------------------
86   !!  Empty module :                                         No Bomb c14
87   !!----------------------------------------------------------------------
88CONTAINS
89   SUBROUTINE trc_ctl_c14b                      ! Dummy routine
90   END SUBROUTINE trc_ctl_c14b
91#endif
92
93   !!======================================================================
94END MODULE trcctl_c14b
Note: See TracBrowser for help on using the repository browser.