/[MITgcm]/MITgcm_contrib/jscott/igsm/inc/assign.inc
ViewVC logotype

Annotation of /MITgcm_contrib/jscott/igsm/inc/assign.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Aug 11 19:33:31 2006 UTC (18 years, 11 months ago) by jscott
Branch: MAIN
atm2d package

1 jscott 1.1
2     ! ================================================================
3     !
4     ! ASSIGN.F A include file containing OPEN or ASSIGN lines
5     ! ----------------------------------------------------------------
6     ! Author: Chien Wang
7     ! MIT Joint Program on Science and Policy of
8     ! Global Change
9     ! April 19, 1994
10     ! ----------------------------------------------------------------
11     !
12     ! Revision History:
13     !
14     ! ------ ----------- ------------------------------
15     ! 032698 Chien Wang rev.
16     ! 080300 Chien Wang add cpp
17     !
18     ! ================================================================
19    
20     !cfname = chemout(1:len_trim(chemout))//'/'//'mit2d.out'
21     !open (06, file=cfname,status='unknown')
22    
23     #if ( defined CPL_CHEM )
24     !
25     !Chemistry-model
26     !
27     ! 1. Open initial atmospheric condition to start simulation:
28    
29     ! 2. Open a given data set to initialize simulation:
30     print *,' From assign',chemdata,chemout
31     id2=index(chemdata," ")
32     open(120,file=chemdata(1:id2-1)//'chem.nml',status='old')
33     C open(120 moved from chemint.F
34     C file chem.nml moved to chemdata
35    
36     #if ( N_LAT == 24 ) && ( N_LEV == 9 )
37     open(163,file=chemdata(1:id2-1)//'init-data_24x9',
38     & form='unformatted',
39     & status='old')
40    
41     open(160,file=chemdata(1:id2-1)//'init-data2_24x9',
42     & form='unformatted',
43     & status='old')
44    
45     open(162,file=chemdata(1:id2-1)//'topo3_24x9',
46     & form='unformatted',
47     & status='old')
48     #endif
49     #if ( N_LAT == 46 ) && ( N_LEV == 11 )
50     id1=index(chem_init," ")
51     print *,'INITIAL DATA FOR CHEMISTRY'
52     print *,chem_init
53     c open(163,file=chemdata(1:id2-1)//'init-data_46x11',
54     open(163,file=chemdata(1:id2-1)//chem_init(1:id1-1),
55     & form='unformatted',
56     & status='old')
57    
58     id1=index(chem_init2," ")
59     print *,chem_init2
60     c open(160,file=chemdata(1:id2-1)//'init-data2_46x11',
61     open(160,file=chemdata(1:id2-1)//chem_init2(1:id1-1),
62     & form='unformatted',
63     & status='old')
64    
65     open(162,file=chemdata(1:id2-1)//'topo3_46x11',
66     & form='unformatted',
67     & status='old')
68     #endif
69     c open(164,file=chemdata(1:id2-1)//'edaily.dat',
70     c & form='unformatted',
71     c & status='old')
72    
73     open(164,file=emiss_data,
74     & form='unformatted',
75     & status='old')
76    
77     ! open(664,file=SO2ERATIO,
78     ! & form='formatted',
79     ! & status='old')
80     ! moved to input.F
81    
82     open(165,file=chemdata(1:id2-1)//'rktable.dat',
83     & form='unformatted',
84     & status='old')
85    
86     ! 3. Open a data file to save rawdata:
87    
88     c closed 032697:
89    
90     c open(166,file='OUTPUT/cfcn2o',
91     c & form='unformatted',
92     c & status='new')
93     c open(171,file='OUTPUT/hox',
94     c & form='unformatted',
95     c & status='new')
96     c open(172,file='OUTPUT/nox',
97     c & form='unformatted',
98     c & status='new')
99     c open(173,file='OUTPUT/hcs',
100     c & form='unformatted',
101     c & status='new')
102     c open(174,file='OUTPUT/sox',
103     c & form='unformatted',
104     c & status='new')
105    
106     cfname = chemout(1:len_trim(chemout))//'/'//'globalmean'
107     open(176,file=cfname,
108     & status='new')
109    
110     cfname = chemout(1:len_trim(chemout))//'/'//'globalmean2'
111     open(180,file=cfname,
112     & status='new')
113    
114     cfname = chemout(1:len_trim(chemout))//'/'//'meta'
115     open(181,file=cfname,
116     & form='unformatted',
117     & status='new')
118    
119     cfname = chemout(1:len_trim(chemout))//'/'//'budget'
120     open(167, file=cfname,status='unknown')
121    
122     cfname = chemout(1:len_trim(chemout))//'/'//'monthly'
123     open(169,file=cfname,
124     & form='unformatted',
125     & status='new')
126    
127     cfname = chemout(1:len_trim(chemout))
128     & //'/'//'monthly2'
129     open(179,file=cfname,
130     & form='unformatted',
131     & status='new')
132     ! ===
133    
134     cfname = chemout(1:len_trim(chemout))//'/'//'photodiag'
135     open(177,file=cfname, !032697
136     & form='unformatted',
137     & status='new')
138    
139     c 5. Open a data file to save diagnostic output:
140    
141     ! open(168,file='OUTPUT/cfc11nsf_monthly',
142     ! & form='unformatted',
143     ! & status='new')
144    
145     cfname = chemout(1:len_trim(chemout))
146     & //'/'//'chemrenew.dat'
147     open(178,file=cfname,
148     & form='unformatted',
149     & status='unknown')
150    
151     if(ISTRTCHEM.eq.1)then
152    
153     C open statment moved from cheminit.F file number change to 279
154     cfname = chemrstfl(1:len_trim(chemrstfl))
155     open(279,file=cfname,
156     & form='unformatted',
157     & status='unknown')
158    
159     endif
160     !
161     #endif
162    

  ViewVC Help
Powered by ViewVC 1.1.22