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.
trcnam_cfc.F90 in branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/CFC – NEMO

source: branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/CFC/trcnam_cfc.F90 @ 7068

Last change on this file since 7068 was 7068, checked in by cetlod, 7 years ago

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1MODULE trcnam_cfc
2   !!======================================================================
3   !!                         ***  MODULE trcnam_cfc  ***
4   !! TOP :   initialisation of some run parameters for CFC chemical model
5   !!======================================================================
6   !! History :   2.0  !  2007-12  (C. Ethe, G. Madec) from trcnam.cfc.h90
7   !!----------------------------------------------------------------------
8   !! trc_nam_cfc      : CFC model initialisation
9   !!----------------------------------------------------------------------
10   USE oce_trc         ! Ocean variables
11   USE trc             ! TOP variables
12   USE trcsms_cfc      ! CFC specific variable
13
14   IMPLICIT NONE
15   PRIVATE
16
17   PUBLIC   trc_nam_cfc   ! called by trcnam.F90 module
18
19   !!----------------------------------------------------------------------
20   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
21   !! $Id$
22   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
23   !!----------------------------------------------------------------------
24
25CONTAINS
26
27   SUBROUTINE trc_nam_cfc
28      !!-------------------------------------------------------------------
29      !!                  ***  ROUTINE trc_nam_cfc  ***
30      !!                 
31      !! ** Purpose :   Definition some run parameter for CFC model
32      !!
33      !! ** Method  :   Read the namcfc namelist and check the parameter
34      !!       values called at the first timestep (nittrc000)
35      !!
36      !! ** input   :   Namelist namcfc
37      !!----------------------------------------------------------------------
38      INTEGER :: ios                 ! Local integer output status for namelist read
39      INTEGER :: jl, jn
40      !!
41      NAMELIST/namcfc/ ndate_beg, nyear_res
42      !!----------------------------------------------------------------------
43
44      IF( ln_cfc11 ) THEN
45         ctrcnm    (jp_cfc0) = 'CFC11'
46         ctrcln    (jp_cfc0) = 'Chlorofluoro carbon 11 Concentration'
47         ctrcun    (jp_cfc0) = 'umolC/L'
48         ln_trc_ini(jp_cfc0) = .false.
49      ENDIF
50      !
51      IF( ln_cfc12 ) THEN
52         ctrcnm    (jp_cfc1) = 'CFC12'
53         ctrcln    (jp_cfc1) = 'Chlorofluoro carbon 12 Concentration'
54         ctrcun    (jp_cfc1) = 'umolC/L'
55         ln_trc_ini(jp_cfc1) = .false.
56      ENDIF
57      !
58      IF(lwp) THEN                   ! control print
59      ENDIF
60
61      REWIND( numtrc_ref )              ! Namelist namcfcdate in reference namelist : CFC parameters
62      READ  ( numtrc_ref, namcfc, IOSTAT = ios, ERR = 901)
63901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in reference namelist', lwp )
64
65      REWIND( numtrc_cfg )              ! Namelist namcfcdate in configuration namelist : CFC parameters
66      READ  ( numtrc_cfg, namcfc, IOSTAT = ios, ERR = 902 )
67902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in configuration namelist', lwp )
68      IF(lwm) WRITE ( numonr, namcfc )
69
70      IF(lwp) THEN                  ! control print
71         WRITE(numout,*) ' '
72         WRITE(numout,*) ' CFCs'
73         IF( ln_cfc11 )  WRITE(numout,*) '  tracer nb : ', jp_cfc0, '    short name : ', TRIM( ctrcnm(jp_cfc0) )
74         IF( ln_cfc12 )  WRITE(numout,*) '  tracer nb : ', jp_cfc1, '    short name : ', TRIM( ctrcnm(jp_cfc1) )
75         WRITE(numout,*) ' '
76         WRITE(numout,*) ' trc_nam: Read namdates, namelist for CFC chemical model'
77         WRITE(numout,*) ' ~~~~~~~'
78         WRITE(numout,*) '    initial calendar date (aammjj) for CFC  ndate_beg = ', ndate_beg
79         WRITE(numout,*) '    restoring time constant (year)          nyear_res = ', nyear_res
80      ENDIF
81      nyear_beg = ndate_beg / 10000
82      IF(lwp) WRITE(numout,*) '    initial year (aa)                       nyear_beg = ', nyear_beg
83      !
84      IF(lwm) CALL FLUSH ( numonr )     ! flush output namelist CFC
85
86   END SUBROUTINE trc_nam_cfc
87   
88   !!======================================================================
89END MODULE trcnam_cfc
Note: See TracBrowser for help on using the repository browser.