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

Last change on this file since 7124 was 7124, checked in by lovato, 7 years ago

New top interface : revise initialisation routines and namelist_top_cfg in ORCA2_LIM3_TRC, see ticket #1782

  • Property svn:keywords set to Id
File size: 3.8 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      ! Variables setting
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         ln_trc_sbc(jp_cfc0) = .false.
50         ln_trc_cbc(jp_cfc0) = .false.
51         ln_trc_obc(jp_cfc0) = .false.
52      ENDIF
53      !
54      IF( ln_cfc12 ) THEN
55         ctrcnm    (jp_cfc1) = 'CFC12'
56         ctrcln    (jp_cfc1) = 'Chlorofluoro carbon 12 Concentration'
57         ctrcun    (jp_cfc1) = 'umolC/L'
58         ln_trc_ini(jp_cfc1) = .false.
59         ln_trc_sbc(jp_cfc1) = .false.
60         ln_trc_cbc(jp_cfc1) = .false.
61         ln_trc_obc(jp_cfc1) = .false.
62      ENDIF
63      !
64      REWIND( numtrc_ref )              ! Namelist namcfcdate in reference namelist : CFC parameters
65      READ  ( numtrc_ref, namcfc, IOSTAT = ios, ERR = 901)
66901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in reference namelist', lwp )
67
68      REWIND( numtrc_cfg )              ! Namelist namcfcdate in configuration namelist : CFC parameters
69      READ  ( numtrc_cfg, namcfc, IOSTAT = ios, ERR = 902 )
70902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in configuration namelist', lwp )
71      IF(lwm) WRITE ( numonr, namcfc )
72
73      IF(lwp) THEN                  ! control print
74         WRITE(numout,*) ' '
75         WRITE(numout,*) ' CFCs'
76         WRITE(numout,*) ' '
77         WRITE(numout,*) ' trc_nam: Read namdates, namelist for CFC chemical model'
78         WRITE(numout,*) ' ~~~~~~~'
79         WRITE(numout,*) '    initial calendar date (aammjj) for CFC  ndate_beg = ', ndate_beg
80         WRITE(numout,*) '    restoring time constant (year)          nyear_res = ', nyear_res
81      ENDIF
82      nyear_beg = ndate_beg / 10000
83      IF(lwp) WRITE(numout,*) '    initial year (aa)                       nyear_beg = ', nyear_beg
84      !
85      IF(lwm) CALL FLUSH ( numonr )     ! flush output namelist CFC
86
87   END SUBROUTINE trc_nam_cfc
88   
89   !!======================================================================
90END MODULE trcnam_cfc
Note: See TracBrowser for help on using the repository browser.