Debian Codegraph @

packages/seacas/applications/blot/gauss.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 GAUSS_BL (ISYTYP, VARFAC, LENF, NLNKF, LINKF, HIDEF,
9 & XN, YN, ZN, ISVOK, LVARF, *)
10 C=======================================================================
11
12 C --*** GAUSS *** (DETOUR) Plot element symbols at gauss points
13 C -- Written by Amy Gilkey, revised 03/14/88
14 C -- D. P. Flanagan, 12/08/83
15 C --
16 C --GAUSS 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 -- LINKF - IN - the connectivity for all faces
27 C -- HIDEF(i) - IN - true iff face i is hidden (3D only)
28 C -- XN, YN, ZN - IN - the nodal coordinates
29 C -- ISVOK - IN - ISVOK(i) is true iff the gauss variables are defined
30 C -- for element block i
31 C -- * - return statement if the cancel function is active
32 C --
33 C --Common Variables:
34 C -- Uses NELBLK of /DBNUMS/
35 C -- Uses IS3DIM of /D3NUMS/
36 C -- Uses VECSCL of /ETCOPT/
37 C -- Uses DTW, VWSCL of /DEVDAT/
38
39 PARAMETER (KSCHSZ=2)
40
41 include 'dbnums.blk'
42 include 'd3nums.blk'
43 include 'etcopt.blk'
44 include 'devdat.blk'
45
46 CHARACTER*(*) ISYTYP
47 INTEGER LENF(0:NELBLK)
48 INTEGER NLNKF(NELBLK)
49 INTEGER LINKF(*)
50 REAL VARFAC(LVARF,4)
51 LOGICAL HIDEF(*)
52 REAL XN(*), YN(*), ZN(*)
53 LOGICAL ISVOK(NELBLK)
54
55 LOGICAL GRABRT
56 LOGICAL PLTSTT, PLTGTT, LDUM
57 REAL XGAUSS(4), YGAUSS(4), ZGAUSS(4)
58
59 SSCL = .25 * VECSCL * DTW
60
61 C --Set symbol size, must be reset before exit
62 LDUM = PLTGTT (KSCHSZ, SYMSZ)
63 LDUM = PLTSTT (KSCHSZ, VECSCL*SYMSZ)
64
65 DO 120 IELB = 1, NELBLK
66 IF (ISVOK(IELB) .AND. (NLNKF(IELB) .EQ. 4)) THEN
67
68 C --Set the symbol color
69
70 CALL GRCOLR (IELB)
71
72 DO 110 IFAC = LENF(IELB-1)+1, LENF(IELB)
73 IF (IS3DIM) THEN
74 IF (HIDEF(IFAC)) GOTO 110
75 END IF
76
77 C --Compute gauss coordinates
78
79 IXL = IDBLNK (IELB, IFAC, LENF, NLNKF)
80 CALL GAUSSF (IS3DIM, NLNKF(IELB), LINKF(IXL), XN, YN, ZN,
81 & XGAUSS, YGAUSS, ZGAUSS)
82
83 C --Call symbol routine each gauss point
84
85 IF (GRABRT ()) GOTO 130
86 DO 100 I = 1, 4
87 CALL USRSYM (ISYTYP, IS3DIM,
88 & XGAUSS(I), YGAUSS(I), ZGAUSS(I), VARFAC(IFAC,I),
89 & SSCL)
90 100 CONTINUE
91 110 CONTINUE
92
93 CALL PLTFLU
94 END IF
95 120 CONTINUE
96
97 C --Reset symbol size
98 LDUM = PLTSTT (KSCHSZ, SYMSZ)
99
100 RETURN
101
102 130 CONTINUE
103 C --Reset symbol size
104 LDUM = PLTSTT (KSCHSZ, SYMSZ)
105
106 RETURN 1
107 END