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 | |
---|
14 | CONTAINS |
---|
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 |
---|