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