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