Debian Codegraph @

packages/seacas/applications/blot/symbol.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 C=======================================================================
8 SUBROUTINE SYMBOL_BL (ISYTYP, VARFAC, LENF, NLNKF, HIDEF,
9 & XF, YF, ZF, ISVOK, BLKCOL, IDELB, *)
10 C=======================================================================
11
12 C --*** SYMBOL *** (DETOUR) Plot element symbol
13 C -- Written by Amy Gilkey, revised 10/12/87
14 C -- D. P. Flanagan, 12/08/83
15 C --
16 C --SYMBOL drives the user symbol interface for element variables.
17 C --It processes each element by element block, computing scaling factors
18 C --and element information, then calling the user symbol routine.
19 C --Only elements of selected element blocks are drawn.
20 C --
21 C --Parameters:
22 C -- ISYTYP - IN - the symbol type (as in MODTYP of /DETOPT/)
23 C -- VARFAC - IN - the face variable values
24 C -- LENF - IN - the cumulative face counts by element block
25 C -- NLNKF - IN - the number of nodes per face
26 C -- HIDEF(i) - IN - true iff face i is hidden (3D only)
27 C -- XF, YF, ZF - IN - the face center coordinates
28 C -- ISVOK - IN - ISVOK(i) is true iff the symbol variables are defined
29 C -- for element block i
30 C -- BLKCOL - IN - the user selected colors of the element blocks.
31 C -- BLKCOL(0) = 1 if the user defined material
32 C -- colors should be used in mesh plots.
33 C -- = -1 if program selected colors should
34 C -- be used.
35 C -- BLKCOL(i) = the user selected color of element
36 C -- block i:
37 C -- -2 - no color selected by user.
38 C -- -1 - black
39 C -- 0 - white
40 C -- 1 - red
41 C -- 2 - green
42 C -- 3 - yellow
43 C -- 4 - blue
44 C -- 5 - cyan
45 C -- 6 - magenta
46 C -- * - return statement if the cancel function is active
47 C --
48 C --Common Variables:
49 C -- Uses NELBLK of /DBNUMS/
50 C -- Uses IS3DIM of /D3NUMS/
51 C -- Uses VECSCL of /ETCOPT/
52 C -- Uses DTW, VWSCL of /DEVDAT/
53
54 PARAMETER (KSCHSZ=2)
55
56 include 'dbnums.blk'
57 include 'd3nums.blk'
58 include 'etcopt.blk'
59 include 'devdat.blk'
60
61 CHARACTER*(*) ISYTYP
62 REAL VARFAC(*)
63 INTEGER LENF(0:NELBLK)
64 INTEGER NLNKF(NELBLK)
65 LOGICAL HIDEF(*)
66 REAL XF(*), YF(*), ZF(*)
67 LOGICAL ISVOK(NELBLK)
68 INTEGER BLKCOL(0:NELBLK)
69 INTEGER IDELB(*)
70
71 LOGICAL GRABRT
72 LOGICAL PLTSTT, PLTGTT, LDUM
73
74 SSCL = VECSCL * DTW
75
76 C --Set symbol size, must be reset before exit
77 LDUM = PLTGTT (KSCHSZ, SYMSZ)
78 LDUM = PLTSTT (KSCHSZ, VECSCL*SYMSZ)
79
80 DO 110 IELB = 1, NELBLK
81 IF (ISVOK(IELB)) THEN
82
83 C --Set the symbol color
84
85 c CALL UGRCOL (IDELB(IELB), BLKCOL)
86 CALL UGRCOL (IELB, BLKCOL)
87
88 DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB)
89 IF (IS3DIM) THEN
90 IF (HIDEF(IFAC)) GOTO 100
91 END IF
92
93 IF (GRABRT ()) GOTO 120
94
95 C --Call symbol routine
96
97 CALL USRSYM (ISYTYP, IS3DIM,
98 & XF(IFAC), YF(IFAC), ZF(IFAC), VARFAC(IFAC), SSCL)
99
100 100 CONTINUE
101
102 CALL PLTFLU
103 END IF
104 110 CONTINUE
105
106 C --Reset symbol size
107 LDUM = PLTSTT (KSCHSZ, SYMSZ)
108
109 RETURN
110
111 120 CONTINUE
112 C --Reset symbol size
113 LDUM = PLTSTT (KSCHSZ, SYMSZ)
114
115 RETURN 1
116 END