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.
trclsm.cfc.h90 in branches/dev_001_GM/NEMO/TOP_SRC/SMS – NEMO

source: branches/dev_001_GM/NEMO/TOP_SRC/SMS/trclsm.cfc.h90 @ 763

Last change on this file since 763 was 763, checked in by gm, 16 years ago

dev_001_GM - Style only addition in TOP F90 h90 routines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1   !!----------------------------------------------------------------------
2   !!                     ***  trclsm.cfc.h90  *** 
3   !! TOP :   Definition some run parameter for CFC chemical model
4   !!----------------------------------------------------------------------
5   !! History :   1.0  !  2003-08 (C. Ethe)  Original code
6   !!----------------------------------------------------------------------
7
8   !!----------------------------------------------------------------------
9   !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005)
10   !! $Id $
11   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
12   !!----------------------------------------------------------------------
13
14CONTAINS
15
16   SUBROUTINE trc_lsm
17      !!-------------------------------------------------------------------
18      !!                  ***  ROUTINE trc_lsm  ***
19      !!                 
20      !! ** Purpose :   Definition some run parameter for CFC model
21      !!
22      !! ** Method  :   Read the namcfc namelist and check the parameter
23      !!       values called at the first timestep (nit000)
24      !!
25      !! ** input   :   Namelist namcfc
26      !!----------------------------------------------------------------------
27      CHARACTER (len=32) ::   clname = 'namelist.trc.sms'
28      INTEGER ::   numnat
29      !!
30      NAMELIST/namdates/ ndate_beg, nyear_res
31      !!-------------------------------------------------------------------
32
33      ndate_beg = 300101            ! default namelist value
34      nyear_res = 1950
35
36      !                             ! Open namelist file
37      CALL ctlopn( numnat, clname, 'OLD', 'FORMATTED', 'SEQUENTIAL',   &
38         &           1, numout, .FALSE., 1 )
39         
40      READ( numnat , namdates )     ! read namelist
41
42      IF(lwp) THEN                  ! control print
43         WRITE(numout,*)
44         WRITE(numout,*) ' trc_lsm: Read namdates, namelist for CFC chemical model'
45         WRITE(numout,*) ' ~~~~~~~'
46         WRITE(numout,*) '    initial calendar date (aammjj) for CFC  ndate_beg = ', ndate_beg
47         WRITE(numout,*) '    restoring time constant (year)          nyear_res = ', nyear_res
48      ENDIF
49      nyear_beg = ndate_beg / 10000
50      IF(lwp) WRITE(numout,*) '    initial year (aa)                       nyear_beg = ', nyear_beg
51      !
52   END SUBROUTINE trc_lsm
Note: See TracBrowser for help on using the repository browser.