Debian Codegraph @

packages/seacas/libraries/svdi/cgi/svdi_addrwrap.F

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 subroutine cgidum
8 end
9
10 #ifdef Build64
11
12 c This wrapper module handles two kinds of interface problems:
13 c the routines starting with 'v' arbitrate between Fortran caller
14 c and C callee; the routines; starting with 'c' arbitrate between
15 c C caller and Fortran callee. The only exception is cgtxx1,
16 c which arbitrates between Fortran caller and C callee.
17
18 subroutine vdinit (aspect,justif)
19 real*8 aspect
20 integer*8 justif
21 real*4 aspect4
22 integer*4 justif4
23 aspect4 = aspect
24 justif4 = justif
25 call vdinit4 (aspect4,justif4)
26 c aspect = aspect4
27 c justif = justif4
28 end
29 c-----------------------------------------------------------------------
30 subroutine vdiqdc (indexa,value)
31 integer*8 indexa
32 real*8 value
33 integer*4 indexa4
34 real*4 value4
35 indexa4 = indexa
36 C ... 'value' is writeonly,
37 call vdiqdc4 (indexa4,value4)
38 indexa = indexa4
39 value = value4
40 end
41 c-----------------------------------------------------------------------
42 subroutine vdstco (num,index_array,color_array,color_mod)
43 integer*8 num
44 integer*8 index_array(num)
45 real*8 color_array(3,num)
46 integer*8 color_mod
47 integer*4 num4
48 integer*4 index_array4(num)
49 real*4 color_array4(3,num)
50 integer*4 color_mod4
51 INTEGER J1X, J2X
52 num4 = num
53 DO J1X = 1, NUM
54 INDEX_ARRAY4(J1X) = INDEX_ARRAY(J1X)
55 END DO
56 DO J2X = 1, 3*NUM
57 COLOR_ARRAY4(J2X,1) = COLOR_ARRAY(J2X,1)
58 END DO
59 color_mod4 = color_mod
60 call vdstco4 (num4,index_array4,color_array4,color_mod4)
61 c num = num4
62 c DO J1X = 1, NUM
63 c INDEX_ARRAY(J1X) = INDEX_ARRAY4(J1X)
64 c END DO
65 c DO J2X = 1, 3*NUM
66 c COLOR_ARRAY(J2X,1) = COLOR_ARRAY4(J2X,1)
67 c END DO
68 c color_mod = color_mod4
69 end
70 c-----------------------------------------------------------------------
71 subroutine vdiqco (num,index_array,color_array,color_mod)
72 integer*8 num
73 integer*8 index_array(num)
74 real*8 color_array(3,num)
75 integer*8 color_mod
76 integer*4 num4
77 integer*4 index_array4(num)
78 real*4 color_array4(3,num)
79 integer*4 color_mod4
80 INTEGER J1X, J2X
81 num4 = num
82 DO J1X = 1, NUM
83 INDEX_ARRAY4(J1X) = INDEX_ARRAY(J1X)
84 END DO
85 C ... 'color_array' is writeonly.
86 color_mod4 = color_mod
87 call vdiqco4 (num4,index_array4,color_array4,color_mod4)
88 c num = num4
89 c DO J1X = 1, NUM
90 c INDEX_ARRAY(J1X) = INDEX_ARRAY4(J1X)
91 c END DO
92 DO J2X = 1, 3*NUM
93 COLOR_ARRAY(J2X,1) = COLOR_ARRAY4(J2X,1)
94 END DO
95 c color_mod = color_mod4
96 end
97 c-----------------------------------------------------------------------
98 subroutine vdescp (escape_code,n,args)
99 integer*8 escape_code
100 integer*8 n
101 real*8 args(n)
102 integer*4 escape_code4
103 integer*4 n4
104 real*4 args4(n)
105 INTEGER J1X
106 escape_code4 = escape_code
107 n4 = n
108 DO J1X = 1, N
109 ARGS4(J1X) = ARGS(J1X)
110 END DO
111 call vdescp4 (escape_code4,n4,args4)
112 c escape_code = escape_code4
113 c n = n4
114 DO J1X = 1, N
115 ARGS(J1X) = ARGS4(J1X)
116 END DO
117 end
118 c-----------------------------------------------------------------------
119 subroutine vdiqes (escape_code,support)
120 integer*8 escape_code
121 integer*8 support
122 integer*4 escape_code4
123 integer*4 support4
124 C... escape_code unused, support is write only.
125 call vdiqes4 (escape_code4,support4)
126 support = support4
127 end
128 c-----------------------------------------------------------------------
129 subroutine vdiqnd (x_ndc,y_ndc)
130 real*8 x_ndc
131 real*8 y_ndc
132 real*4 x_ndc4
133 real*4 y_ndc4
134 C ... x_ndc, y_ndc write-only arguments
135 call vdiqnd4 (x_ndc4,y_ndc4)
136 x_ndc = x_ndc4
137 y_ndc = y_ndc4
138 end
139 c-----------------------------------------------------------------------
140 subroutine vdmova (x,y)
141 real*8 x
142 real*8 y
143 real*4 x4
144 real*4 y4
145 x4 = x
146 y4 = y
147 call vdmova4 (x4,y4)
148 x = x4
149 y = y4
150 end
151 c-----------------------------------------------------------------------
152 subroutine vdlina (x,y)
153 real*8 x
154 real*8 y
155 real*4 x4
156 real*4 y4
157 x4 = x
158 y4 = y
159 call vdlina4 (x4,y4)
160 x = x4
161 y = y4
162 end
163 c-----------------------------------------------------------------------
164 subroutine vdpnta (x,y)
165 real*8 x
166 real*8 y
167 real*4 x4
168 real*4 y4
169 x4 = x
170 y4 = y
171 call vdpnta4 (x4,y4)
172 x = x4
173 y = y4
174 end
175 c-----------------------------------------------------------------------
176 subroutine vdtext (length,char_array)
177 integer*8 length
178 integer*8 char_array(length)
179 integer*4 length4
180 integer*4 char_array4(length)
181 INTEGER J1X
182 length4 = length
183 DO J1X = 1, LENGTH
184 CHAR_ARRAY4(J1X) = CHAR_ARRAY(J1X)
185 END DO
186 call vdtext4 (length4,char_array4)
187 length = length4
188 DO J1X = 1, LENGTH
189 CHAR_ARRAY(J1X) = CHAR_ARRAY4(J1X)
190 END DO
191 end
192 c-----------------------------------------------------------------------
193 subroutine vdpoly (x_array,y_array,npts)
194 integer*8 npts
195 real*8 x_array(npts)
196 real*8 y_array(npts)
197 real*4 x_array4(npts)
198 real*4 y_array4(npts)
199 integer*4 npts4
200 INTEGER J1X
201 DO J1X = 1, NPTS
202 X_ARRAY4(J1X) = X_ARRAY(J1X)
203 Y_ARRAY4(J1X) = Y_ARRAY(J1X)
204 END DO
205 npts4 = npts
206 call vdpoly4 (x_array4,y_array4,npts4)
207 DO J1X = 1, NPTS
208 X_ARRAY(J1X) = X_ARRAY4(J1X)
209 Y_ARRAY(J1X) = Y_ARRAY4(J1X)
210 END DO
211 npts = npts4
212 end
213 c-----------------------------------------------------------------------
214 subroutine vdiqcp (x,y)
215 real*8 x
216 real*8 y
217 real*4 x4
218 real*4 y4
219 C... 'x' and 'y' are write-only arguments
220 call vdiqcp4 (x4,y4)
221 x = x4
222 y = y4
223 end
224 c-----------------------------------------------------------------------
225 subroutine vdiqos (attr_array)
226 real*8 attr_array(7)
227 real*4 attr_array4(7)
228 INTEGER J1X
229 C ... attr_array4 argument is write only, don't initialize
230 call vdiqos4 (attr_array4)
231 DO J1X = 1, 7
232 ATTR_ARRAY(J1X) = ATTR_ARRAY4(J1X)
233 END DO
234 end
235 c-----------------------------------------------------------------------
236 subroutine vdstfc (color_index)
237 integer*8 color_index
238 integer*4 color_index4
239 color_index4 = color_index
240 call vdstfc4 (color_index4)
241 c color_index = color_index4
242 end
243 c-----------------------------------------------------------------------
244 subroutine vdstbc (color_index)
245 integer*8 color_index
246 integer*4 color_index4
247 color_index4 = color_index
248 call vdstbc4 (color_index4)
249 c color_index = color_index4
250 end
251 c-----------------------------------------------------------------------
252 subroutine vdstin (intensity)
253 real*8 intensity
254 real*4 intensity4
255 intensity4 = intensity
256 call vdstin4 (intensity4)
257 c intensity = intensity4
258 end
259 c-----------------------------------------------------------------------
260 subroutine vdstls (line_style)
261 integer*8 line_style
262 integer*4 line_style4
263 line_style4 = line_style
264 call vdstls4 (line_style4)
265 c line_style = line_style4
266 end
267 c-----------------------------------------------------------------------
268 subroutine vdstlw (line_width)
269 real*8 line_width
270 real*4 line_width4
271 line_width4 = line_width
272 call vdstlw4 (line_width4)
273 c line_width = line_width4
274 end
275 c-----------------------------------------------------------------------
276 subroutine vdstcs (y_size)
277 real*8 y_size
278 real*4 y_size4
279 y_size4 = y_size
280 call vdstcs4 (y_size4)
281 c y_size = y_size4
282 end
283 c-----------------------------------------------------------------------
284 subroutine vdaabu (button)
285 integer*8 button
286 integer*4 button4
287 C ... 'button' is write-only argument
288 call vdaabu4 (button4)
289 button = button4
290 end
291 c-----------------------------------------------------------------------
292 subroutine vdaloc (x,y)
293 real*8 x
294 real*8 y
295 real*4 x4
296 real*4 y4
297 C ... 'x' and 'y' are write-only arguments
298 call vdaloc4 (x4,y4)
299 x = x4
300 y = y4
301 end
302 c-----------------------------------------------------------------------
303 subroutine vdabgl (button,x,y)
304 integer*8 button
305 real*8 x
306 real*8 y
307 integer*4 button4
308 real*4 x4
309 real*4 y4
310 C... 'button', 'x', and 'y' are write-only
311 call vdabgl4 (button4,x4,y4)
312 button = button4
313 x = x4
314 y = y4
315 end
316 c-----------------------------------------------------------------------
317 subroutine vdakgl (charac,x,y)
318 integer*8 charac
319 real*8 x
320 real*8 y
321 integer*4 charac4
322 real*4 x4
323 real*4 y4
324 C ... arguments are write-only
325 charac4 = 0
326 x4 = 0.0
327 y4 = 0.0
328 call vdakgl4 (charac4,x4,y4)
329 charac = charac4
330 x = x4
331 y = y4
332 end
333 c-----------------------------------------------------------------------
334 subroutine vdstla (x,y)
335 real*8 x
336 real*8 y
337 real*4 x4
338 real*4 y4
339 C ... arguments are write-only
340 x4 = 0.0
341 y4 = 0.0
342 call vdstla4 (x4,y4)
343 x = x4
344 y = y4
345 end
346 c-----------------------------------------------------------------------
347 subroutine vdstos (attr_array)
348 real*8 attr_array(6)
349 real*4 attr_array4(6)
350 INTEGER J1X
351 DO J1X = 1, 6
352 ATTR_ARRAY4(J1X) = ATTR_ARRAY(J1X)
353 END DO
354 call vdstos4 (attr_array4)
355 DO J1X = 1, 6
356 ATTR_ARRAY(J1X) = ATTR_ARRAY4(J1X)
357 END DO
358 end
359 c-----------------------------------------------------------------------
360 subroutine vdfram (itype)
361 integer*8 itype
362 integer*4 itype4
363 itype4 = itype
364 call vdfram4 (itype4)
365 c itype = itype4
366 end
367 c-----------------------------------------------------------------------
368 subroutine cesc24 (i1, i2, r1)
369 integer*4 i1, i2
370 real*4 r1
371 integer*8 l1, l2
372 real*8 d1
373 l1 = i1
374 l2 = i2
375 d1 = r1
376 call cesc2 (l1, l2, d1)
377 i1 = l1
378 i2 = l2
379 r1 = d1
380 end
381 c-----------------------------------------------------------------------
382 subroutine ctx24 (r1, r2, i1, i2)
383 integer*4 i1(150), i2
384 real*4 r1, r2
385 integer*8 l1(150), l2
386 real*8 d1, d2
387 INTEGER J1X
388 DO J1X = 1, 150
389 L1(J1X) = I1(J1X)
390 END DO
391 l2 = i2
392 d1 = r1
393 d2 = r2
394 call ctx2 (d1, d2, l1, l2)
395 DO J1X = 1, 150
396 I1(J1X) = L1(J1X)
397 END DO
398 i2 = l2
399 r1 = d1
400 r2 = d2
401 end
402 c-----------------------------------------------------------------------
403 subroutine cgtxx24 (r1, r2, i1, i2, r3, r4, r5, r6, r7,
404 & r8, r9, r10, r11, r12)
405 integer*4 i1, i2
406 real*4 r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12
407 integer*8 l1, l2
408 real*8 d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12
409 l1 = i1
410 l2 = i2
411 d1 = r1
412 d2 = r2
413 d3 = r3
414 d4 = r4
415 d5 = r5
416 d6 = r6
417 d7 = r7
418 d8 = r8
419 d9 = r9
420 d10 = r10
421 d11 = r11
422 d12 = r12
423 call cgtxx2 (d1, d2, l1, l2, d3, d4, d5, d6, d7,
424 & d8, d9, d10, d11, d12)
425 i1 = l1
426 i2 = l2
427 r1 = d1
428 r2 = d2
429 r3 = d3
430 r4 = d4
431 r5 = d5
432 r6 = d6
433 r7 = d7
434 r8 = d8
435 r9 = d9
436 r10 = d10
437 r11 = d11
438 r12 = d12
439 end
440 c-----------------------------------------------------------------------
441 subroutine cqchh24 (i1, i2, i3, i4, i5, i6, i7)
442 integer*4 i1, i2, i3, i4, i5, i6, i7
443 integer*8 l1, l2, l3, l4, l5, l6, l7
444 l1 = i1
445 l2 = i2
446 l3 = i3
447 l4 = i4
448 l5 = i5
449 l6 = i6
450 l7 = i7
451 call cqchh2 (l1, l2, l3, l4, l5, l6, l7)
452 c i1 = l1
453 c i2 = l2
454 c i3 = l3
455 i4 = l4
456 i5 = l5
457 i6 = l6
458 i7 = l7
459 end
460 c-----------------------------------------------------------------------
461 subroutine cesc1 (l1, l2, s, l3)
462 integer*8 l1, l2, l3
463 character*(*) s
464 integer*4 i1, i2, i3
465 i1 = l1
466 i2 = l2
467 i3 = l3
468 call cesc14 (i1, i2, s, i3)
469 l1 = i1
470 l2 = i2
471 l3 = i3
472 end
473 c-----------------------------------------------------------------------
474 subroutine ctx1 (d1, d2, l1, s, l2)
475 integer*8 l1, l2
476 real*8 d1, d2
477 character*(*) s
478 integer*4 i1, i2
479 real*4 r1, r2
480 i1 = l1
481 i2 = l2
482 r1 = d1
483 r2 = d2
484 call ctx14( r1, r2, i1, s, i2)
485 c l1 = i1
486 l2 = i2
487 c d1 = r1
488 c d2 = r2
489 end
490 c-----------------------------------------------------------------------
491 subroutine cgtxx1 (d1, d2, s, l1, l2, d3, d4, d5, d6, d7,
492 & d8, d9, d10, d11, d12)
493 integer*8 l1, l2
494 real*8 d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12
495 character*(*) s
496 integer*4 i1, i2, i3
497 real*4 r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12
498 i1 = l1
499 i2 = l2
500 r1 = d1
501 r2 = d2
502 r3 = d3
503 r4 = d4
504 r5 = d5
505 r6 = d6
506 r7 = d7
507 r8 = d8
508 r9 = d9
509 r10 = d10
510 r11 = d11
511 r12 = d12
512 i3 = len(s)
513 call cgtxx14 (r1, r2, s, i1, i2, r3, r4, r5, r6, r7,
514 & r8, r9, r10, r11, r12, i3)
515 l1 = i1
516 l2 = i2
517 c d1 = r1
518 c d2 = r2
519 d3 = r3
520 d4 = r4
521 d5 = r5
522 d6 = r6
523 d7 = r7
524 d8 = r8
525 d9 = r9
526 d10 = r10
527 d11 = r11
528 d12 = r12
529 end
530 c-----------------------------------------------------------------------
531 subroutine cqchh1 (s, l1, l2, l3, l4, l5, l6, l7, l8)
532 integer*8 l1, l2, l3, l4, l5, l6, l7, l8
533 character*(*) s
534 integer*4 i1, i2, i3, i4, i5, i6, i7, i8
535 i1 = l1
536 i2 = l2
537 i3 = l3
538 i4 = l4
539 i5 = l5
540 i6 = l6
541 i7 = l7
542 i8 = l8
543 call cqchh14 (s, i1, i2, i3, i4, i5, i6, i7, i8)
544 C l1 = i1
545 C l2 = i2
546 C l3 = i3
547 l4 = i4
548 l5 = i5
549 l6 = i6
550 l7 = i7
551 l8 = i8
552 end
553 c-----------------------------------------------------------------------
554 #endif