-
Notifications
You must be signed in to change notification settings - Fork 2
/
CRASH.INC
315 lines (297 loc) · 10.7 KB
/
CRASH.INC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
CM
c=======================================================================
c CRASH handles
c
integer blk_crsh
integer hdl_crsh_r_ty(0:hdl_z_m1)
integer hdl_crsh_r_pri_lkb(0:hdl_z_m1)
integer hdl_crsh_r_pri_lkf(0:hdl_z_m1)
integer hdl_crsh_c_ty(0:hdl_z_m1)
integer hdl_crsh_r_n_act_en(0:hdl_z_m1)
integer hdl_crsh_r_n_act_en_hdr(0:hdl_z_m1)
integer hdl_crsh_r_n_act_en_lkb(0:hdl_z_m1)
integer hdl_crsh_r_n_act_en_lkf(0:hdl_z_m1)
integer hdl_crsh_c_n_act_en(0:hdl_z_m1)
integer hdl_crsh_mtx_c_mx_abs_v(0:hdl_z_m1)
integer hdl_crsh_mtx_c_v(0:hdl_z_m1)
integer hdl_crsh_mtx_c_ix(0:hdl_z_m1)
integer hdl_crsh_mtx_r_sa(0:hdl_z_m1)
integer hdl_crsh_r_st(0:hdl_z_m1)
integer hdl_crsh_c_st(0:hdl_z_m1)
integer ix_hdl_crsh_r_ty
integer ix_hdl_crsh_r_pri_lkb
integer ix_hdl_crsh_r_pri_lkf
integer ix_hdl_crsh_c_ty
integer ix_hdl_crsh_r_n_act_en
integer ix_hdl_crsh_r_n_act_en_hdr
integer ix_hdl_crsh_r_n_act_en_lkb
integer ix_hdl_crsh_r_n_act_en_lkf
integer ix_hdl_crsh_c_n_act_en
integer ix_hdl_crsh_mtx_c_mx_abs_v
integer ix_hdl_crsh_mtx_c_v
integer ix_hdl_crsh_mtx_c_ix
integer ix_hdl_crsh_mtx_r_sa
integer ix_hdl_crsh_r_st
integer ix_hdl_crsh_c_st
parameter (ix_hdl_crsh_r_ty = 0)
parameter (ix_hdl_crsh_r_pri_lkb =
& ix_hdl_crsh_r_ty + hdl_z)
parameter (ix_hdl_crsh_r_pri_lkf =
& ix_hdl_crsh_r_pri_lkb + hdl_z)
parameter (ix_hdl_crsh_c_ty =
& ix_hdl_crsh_r_pri_lkf + hdl_z)
parameter (ix_hdl_crsh_r_n_act_en =
& ix_hdl_crsh_c_ty + hdl_z)
parameter (ix_hdl_crsh_r_n_act_en_hdr =
& ix_hdl_crsh_r_n_act_en + hdl_z)
parameter (ix_hdl_crsh_r_n_act_en_lkb =
& ix_hdl_crsh_r_n_act_en_hdr + hdl_z)
parameter (ix_hdl_crsh_r_n_act_en_lkf =
& ix_hdl_crsh_r_n_act_en_lkb + hdl_z)
parameter (ix_hdl_crsh_c_n_act_en =
& ix_hdl_crsh_r_n_act_en_lkf + hdl_z)
parameter (ix_hdl_crsh_mtx_c_mx_abs_v =
& ix_hdl_crsh_c_n_act_en + hdl_z)
parameter (ix_hdl_crsh_mtx_c_v =
& ix_hdl_crsh_mtx_c_mx_abs_v + hdl_z)
parameter (ix_hdl_crsh_mtx_c_ix =
& ix_hdl_crsh_mtx_c_v + hdl_z)
parameter (ix_hdl_crsh_mtx_r_sa =
& ix_hdl_crsh_mtx_c_ix + hdl_z)
parameter (ix_hdl_crsh_r_st =
& ix_hdl_crsh_mtx_r_sa + hdl_z)
parameter (ix_hdl_crsh_c_st =
& ix_hdl_crsh_r_st + hdl_z)
integer crsh_hdl_n_en
integer n_crsh_hdl
parameter (
& crsh_hdl_n_en = ix_hdl_crsh_c_st + hdl_z,
& n_crsh_hdl = crsh_hdl_n_en/hdl_z)
integer crsh_hdl(0:crsh_hdl_n_en-1)
common/ems_crsh_hdl_com/crsh_hdl
equivalence (blk_crsh,
& crsh_hdl(ix_hdl_crsh_r_ty+hdl_os_blk_n))
equivalence (hdl_crsh_r_ty(0),
& crsh_hdl(ix_hdl_crsh_r_ty))
equivalence (hdl_crsh_r_pri_lkb(0),
& crsh_hdl(ix_hdl_crsh_r_pri_lkb))
equivalence (hdl_crsh_r_pri_lkf(0),
& crsh_hdl(ix_hdl_crsh_r_pri_lkf))
equivalence (hdl_crsh_c_ty(0),
& crsh_hdl(ix_hdl_crsh_c_ty))
equivalence (hdl_crsh_r_n_act_en(0),
& crsh_hdl(ix_hdl_crsh_r_n_act_en))
equivalence (hdl_crsh_r_n_act_en_hdr(0),
& crsh_hdl(ix_hdl_crsh_r_n_act_en_hdr))
equivalence (hdl_crsh_r_n_act_en_lkb(0),
& crsh_hdl(ix_hdl_crsh_r_n_act_en_lkb))
equivalence (hdl_crsh_r_n_act_en_lkf(0),
& crsh_hdl(ix_hdl_crsh_r_n_act_en_lkf))
equivalence (hdl_crsh_c_n_act_en(0),
& crsh_hdl(ix_hdl_crsh_c_n_act_en))
equivalence (hdl_crsh_mtx_c_mx_abs_v(0),
& crsh_hdl(ix_hdl_crsh_mtx_c_mx_abs_v))
equivalence (hdl_crsh_mtx_c_v(0),
& crsh_hdl(ix_hdl_crsh_mtx_c_v))
equivalence (hdl_crsh_mtx_c_ix(0),
& crsh_hdl(ix_hdl_crsh_mtx_c_ix))
equivalence (hdl_crsh_mtx_r_sa(0),
& crsh_hdl(ix_hdl_crsh_mtx_r_sa))
equivalence (hdl_crsh_r_st(0),
& crsh_hdl(ix_hdl_crsh_r_st))
equivalence (hdl_crsh_c_st(0),
& crsh_hdl(ix_hdl_crsh_c_st))
c=======================================================================
c CRASH pointers
c
integer p_crsh_r_ty
integer p_crsh_r_pri_lkb
integer p_crsh_r_pri_lkf
integer p_crsh_c_ty
integer p_crsh_r_n_act_en
integer p_crsh_r_n_act_en_hdr
integer p_crsh_r_n_act_en_lkb
integer p_crsh_r_n_act_en_lkf
integer p_crsh_c_n_act_en
integer p_crsh_mtx_c_mx_abs_v
integer p_crsh_mtx_c_v
integer p_crsh_mtx_c_ix
integer p_crsh_mtx_r_sa
integer p_crsh_r_st
integer p_crsh_c_st
integer ix_p_crsh_r_ty
integer ix_p_crsh_r_pri_lkb
integer ix_p_crsh_r_pri_lkf
integer ix_p_crsh_c_ty
integer ix_p_crsh_r_n_act_en
integer ix_p_crsh_r_n_act_en_hdr
integer ix_p_crsh_r_n_act_en_lkb
integer ix_p_crsh_r_n_act_en_lkf
integer ix_p_crsh_c_n_act_en
integer ix_p_crsh_mtx_c_mx_abs_v
integer ix_p_crsh_mtx_c_v
integer ix_p_crsh_mtx_c_ix
integer ix_p_crsh_mtx_r_sa
integer ix_p_crsh_r_st
integer ix_p_crsh_c_st
parameter (ix_p_crsh_r_ty = 1)
parameter (ix_p_crsh_r_pri_lkb =
& ix_p_crsh_r_ty + 1)
parameter (ix_p_crsh_r_pri_lkf =
& ix_p_crsh_r_pri_lkb + 1)
parameter (ix_p_crsh_c_ty =
& ix_p_crsh_r_pri_lkf + 1)
parameter (ix_p_crsh_r_n_act_en =
& ix_p_crsh_c_ty + 1)
parameter (ix_p_crsh_r_n_act_en_hdr =
& ix_p_crsh_r_n_act_en + 1)
parameter (ix_p_crsh_r_n_act_en_lkb =
& ix_p_crsh_r_n_act_en_hdr + 1)
parameter (ix_p_crsh_r_n_act_en_lkf =
& ix_p_crsh_r_n_act_en_lkb + 1)
parameter (ix_p_crsh_c_n_act_en =
& ix_p_crsh_r_n_act_en_lkf + 1)
parameter (ix_p_crsh_mtx_c_mx_abs_v =
& ix_p_crsh_c_n_act_en + 1)
parameter (ix_p_crsh_mtx_c_v =
& ix_p_crsh_mtx_c_mx_abs_v + 1)
parameter (ix_p_crsh_mtx_c_ix =
& ix_p_crsh_mtx_c_v + 1)
parameter (ix_p_crsh_mtx_r_sa =
& ix_p_crsh_mtx_c_ix + 1)
parameter (ix_p_crsh_r_st =
& ix_p_crsh_mtx_r_sa + 1)
parameter (ix_p_crsh_c_st =
& ix_p_crsh_r_st + 1)
integer n_crsh_p
parameter (n_crsh_p = ix_p_crsh_c_st)
integer crsh_p(n_crsh_p)
common/ems_crsh_p_com/crsh_p
equivalence (p_crsh_r_ty,
& crsh_p(ix_p_crsh_r_ty))
equivalence (p_crsh_r_pri_lkb,
& crsh_p(ix_p_crsh_r_pri_lkb))
equivalence (p_crsh_r_pri_lkf,
& crsh_p(ix_p_crsh_r_pri_lkf))
equivalence (p_crsh_c_ty,
& crsh_p(ix_p_crsh_c_ty))
equivalence (p_crsh_r_n_act_en,
& crsh_p(ix_p_crsh_r_n_act_en))
equivalence (p_crsh_r_n_act_en_hdr,
& crsh_p(ix_p_crsh_r_n_act_en_hdr))
equivalence (p_crsh_r_n_act_en_lkb,
& crsh_p(ix_p_crsh_r_n_act_en_lkb))
equivalence (p_crsh_r_n_act_en_lkf,
& crsh_p(ix_p_crsh_r_n_act_en_lkf))
equivalence (p_crsh_c_n_act_en,
& crsh_p(ix_p_crsh_c_n_act_en))
equivalence (p_crsh_mtx_c_mx_abs_v,
& crsh_p(ix_p_crsh_mtx_c_mx_abs_v))
equivalence (p_crsh_mtx_c_v,
& crsh_p(ix_p_crsh_mtx_c_v))
equivalence (p_crsh_mtx_c_ix,
& crsh_p(ix_p_crsh_mtx_c_ix))
equivalence (p_crsh_mtx_r_sa,
& crsh_p(ix_p_crsh_mtx_r_sa))
equivalence (p_crsh_r_st,
& crsh_p(ix_p_crsh_r_st))
equivalence (p_crsh_c_st,
& crsh_p(ix_p_crsh_c_st))
c=======================================================================
c CRASH parameters
c
integer crsh_tl_rfn_msk_abs_pv_v_bt
integer crsh_tl_rfn_msk_rlv_pv_v_bt
parameter (
& crsh_tl_rfn_msk_abs_pv_v_bt = bt1,
& crsh_tl_rfn_msk_rlv_pv_v_bt = bt2)
integer crsh_vr_st_no_act
integer crsh_vr_st_act
parameter (
& crsh_vr_st_no_act = 0,
& crsh_vr_st_act = 1)
c
c Set minimum and maximum priority values
c
integer crsh_mn_pri_v
integer crsh_mx_pri_v
parameter (
& crsh_mn_pri_v = 0,
& crsh_mx_pri_v = 6)
c
c Rows and columns with this priority value are never active
c
integer crsh_no_act_pri_v
parameter (crsh_no_act_pri_v = crsh_mn_pri_v)
c
c Variable types for basis-preserving LTSSF crash
c
integer crsh_vr_ty_bc
integer crsh_vr_ty_non_bc
parameter (crsh_vr_ty_bc = 0)
parameter (crsh_vr_ty_non_bc = 1)
c
c Variable types for standard LTSSF crash
c
integer crsh_vr_ty_fx
integer crsh_vr_ty_fx_ze_fs
integer crsh_vr_ty_2_sd
integer crsh_vr_ty_2_sd_ze_fs
integer crsh_vr_ty_1_sd
integer crsh_vr_ty_1_sd_ze_fs
integer crsh_vr_ty_fr
parameter (crsh_vr_ty_fx = 0)
parameter (crsh_vr_ty_fx_ze_fs = 1)
parameter (crsh_vr_ty_2_sd = 2)
parameter (crsh_vr_ty_2_sd_ze_fs = 3)
parameter (crsh_vr_ty_1_sd = 4)
parameter (crsh_vr_ty_1_sd_ze_fs = 5)
parameter (crsh_vr_ty_fr = 6)
c
c Limits on numbers of variable types
c
integer crsh_f_vr_ty
integer crsh_l_vr_ty
parameter (crsh_f_vr_ty = crsh_vr_ty_fx)
parameter (crsh_l_vr_ty = crsh_vr_ty_fr)
character*3 ch3_crsh_vr_ty(crsh_f_vr_ty:crsh_l_vr_ty)
common/ems_crsh_vr_ty_com/ch3_crsh_vr_ty
integer iz_crsh_com
integer crsh_ou_cn
integer crsh_r_ty_pri_v(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_c_ty_pri_v(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_vr_ty_og_n_r(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_vr_ty_rm_n_r(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_vr_ty_og_n_c(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_vr_ty_add_n_c(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_r_pri_v_hdr(crsh_mn_pri_v:crsh_mx_pri_v)
common/ems_crsh_pri_com/
& iz_crsh_com,
& crsh_ou_cn,
& crsh_r_ty_pri_v,
& crsh_c_ty_pri_v,
& crsh_vr_ty_og_n_r,
& crsh_vr_ty_rm_n_r,
& crsh_vr_ty_og_n_c,
& crsh_vr_ty_add_n_c,
& crsh_r_pri_v_hdr
integer n_crsh_ps
integer lg_bs_n_fx_vr
integer crsh_bs_n_fx_vr
common/ems_crsh_da_com/
& n_crsh_ps,
& lg_bs_n_fx_vr,
& crsh_bs_n_fx_vr
double precision tl_crsh_abs_pv_v
double precision tl_crsh_rlv_pv_v
common/ems_crsh_rl_ct_vr/
& tl_crsh_abs_pv_v,
& tl_crsh_rlv_pv_v
integer crsh_msk_ze_fs_bt
integer crsh_msk_ze_pr_act_bt
parameter (crsh_msk_ze_fs_bt = bt1)
parameter (crsh_msk_ze_pr_act_bt = bt2)
integer crsh_r_pri(crsh_f_vr_ty:crsh_l_vr_ty)
integer crsh_c_pri(crsh_f_vr_ty:crsh_l_vr_ty)
common/ems_crsh_pri_com/
& crsh_r_pri, crsh_c_pri