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 trunk/NEMO/TOP_SRC/C14b – NEMO

source: trunk/NEMO/TOP_SRC/C14b/trcctl_c14b.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

File size: 2.7 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      IF(lwp) THEN
36          WRITE(numout,*) ' C14 bomb Model '
37          WRITE(numout,*) ' '
38      ENDIF
39
40      ! Check number of tracers
41      ! -----------------------   
42      IF( jp_c14b > 1) CALL ctl_stop( ' Change jp_c14b to be equal 1 in par_c14b.F90' )
43
44      ! Check tracer names
45      ! ------------------
46      IF ( ctrcnm(jpc14) /= 'C14B' ) THEN
47           ctrcnm(jpc14)  = 'C14B'
48           ctrcnl(jpc14)  = 'Bomb C14 concentration'
49      ENDIF
50
51      IF(lwp) THEN
52         CALL ctl_warn( ' we force tracer names' )
53         WRITE(numout,*) ' tracer nb: ',jpc14,' name = ',ctrcnm(jpc14), ctrcnl(jpc14)
54         WRITE(numout,*) ' '
55      ENDIF
56
57      ! Check tracer units
58      ! ------------------
59      IF( ctrcun(jpc14) /= 'ration' ) THEN
60          ctrcun(jpc14) = 'ration'
61          IF(lwp) THEN
62             CALL ctl_warn( ' we force tracer unit' )
63             WRITE(numout,*) ' tracer  ',ctrcnm(jpc14), 'UNIT= ',ctrcun(jpc14)
64             WRITE(numout,*) ' '
65          ENDIF
66       ENDIF
67      !
68   END SUBROUTINE trc_ctl_c14b
69
70#else
71   !!----------------------------------------------------------------------
72   !!  Empty module :                                         No Bomb c14
73   !!----------------------------------------------------------------------
74CONTAINS
75   SUBROUTINE trc_ctl_c14b                      ! Dummy routine
76   END SUBROUTINE trc_ctl_c14b
77#endif
78
79   !!======================================================================
80END MODULE trcctl_c14b
Note: See TracBrowser for help on using the repository browser.