| 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 QSOLID (LENF, NLNKF, LINKF, HIDEF, XN, YN, ZN, IELBST, |
| 9 |
& BLKCOL, IDELB, *) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** QSOLID *** (DETOUR) Paint solid mesh (quick) |
| 13 |
C -- Modified by John Glick - 11/29/88 |
| 14 |
C -- Written by Amy Gilkey - revised 10/27/87 |
| 15 |
C -- |
| 16 |
C --QSOLID paints the mesh in the color of each element's element block. |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- LENF - IN - the cumulative face counts by element block |
| 20 |
C -- NLNKF - IN - the number of nodes per face |
| 21 |
C -- LINKF - IN - the connectivity for all faces |
| 22 |
C -- HIDEF(i) - IN - true iff face i is hidden (3D only) |
| 23 |
C -- XN, YN, ZN - IN - the nodal coordinates |
| 24 |
C -- IELBST - IN - the element block status (>0 if selected) |
| 25 |
C -- BLKCOL - IN/OUT - the user selected colors of the element blocks. |
| 26 |
C -- BLKCOL(0) = 1 if the user defined material |
| 27 |
C -- colors should be used in mesh plots. |
| 28 |
C -- = -1 if program selected colors should |
| 29 |
C -- be used. |
| 30 |
C -- BLKCOL(i) = the user selected color of element |
| 31 |
C -- block i: |
| 32 |
C -- -2 - no color selected by user. |
| 33 |
C -- -1 - black |
| 34 |
C -- 0 - white |
| 35 |
C -- 1 - red |
| 36 |
C -- 2 - green |
| 37 |
C -- 3 - yellow |
| 38 |
C -- 4 - blue |
| 39 |
C -- 5 - cyan |
| 40 |
C -- 6 - magenta |
| 41 |
C -- * - return statement if the cancel function is active |
| 42 |
C -- |
| 43 |
C --Common Variables: |
| 44 |
C -- Uses NUMEL, NELBLK of /DBNUMS/ |
| 45 |
C -- Uses IS3DIM of /D3NUMS/ |
| 46 |
|
| 47 |
include 'dbnums.blk' |
| 48 |
include 'd3nums.blk' |
| 49 |
|
| 50 |
INTEGER LENF(0:NELBLK) |
| 51 |
INTEGER NLNKF(NELBLK) |
| 52 |
INTEGER LINKF(*) |
| 53 |
LOGICAL HIDEF(*) |
| 54 |
REAL XN(*), YN(*), ZN(*) |
| 55 |
INTEGER IELBST(NELBLK) |
| 56 |
INTEGER BLKCOL(0:NELBLK) |
| 57 |
INTEGER IDELB(*) |
| 58 |
|
| 59 |
LOGICAL GRABRT |
| 60 |
|
| 61 |
DO 110 IELB = 1, NELBLK |
| 62 |
|
| 63 |
CALL UGRCOL (IELB, BLKCOL) |
| 64 |
C CALL UGRCOL (IDELB(IELB), BLKCOL) |
| 65 |
IF ( (.NOT. IS3DIM) .AND. (NLNKF(IELB) .EQ. 9)) THEN |
| 66 |
NNPF = 8 |
| 67 |
ELSE |
| 68 |
NNPF = NLNKF(IELB) |
| 69 |
ENDIF |
| 70 |
|
| 71 |
DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 72 |
IF (IS3DIM) THEN |
| 73 |
IF (HIDEF(IFAC)) GOTO 100 |
| 74 |
END IF |
| 75 |
|
| 76 |
IF (GRABRT ()) RETURN 1 |
| 77 |
IXL = IDBLNK (IELB, IFAC, LENF, NLNKF) |
| 78 |
CALL SOLIDF (NNPF, LINKF(IXL), XN, YN, ZN) |
| 79 |
100 CONTINUE |
| 80 |
|
| 81 |
CALL PLTFLU |
| 82 |
110 CONTINUE |
| 83 |
|
| 84 |
RETURN |
| 85 |
END |