| 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 DEADUP (HIDENP, XN, YN, ZN, IDN2B, *) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** DEADUP *** (MESH) Plot "dead" nodes with symbols |
| 12 |
C -- Written by Amy Gilkey - revised 03/09/88 |
| 13 |
C -- |
| 14 |
C --DEADUP draws a symbol at each dead node. A dead node is a node |
| 15 |
C --which is not attached to any alive elements. |
| 16 |
C --Only nodes of selected element blocks are drawn. |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- HIDENP(i) - IN - true iff node i is hidden (3D only) |
| 20 |
C -- XN, YN, ZN - IN - the nodal coordinates |
| 21 |
C -- IDN2B - IN - the element block for each dead node; dead if >= 0; |
| 22 |
C -- =0 if in more than one selected element block |
| 23 |
C -- * - return statement if the cancel function is active |
| 24 |
C -- |
| 25 |
C --Common Variables: |
| 26 |
C -- Uses NELBLK of /DBNUMS/ |
| 27 |
C -- Uses IS3DIM, NUMNPF of /D3NUMS/ |
| 28 |
|
| 29 |
include 'dbnums.blk' |
| 30 |
include 'd3nums.blk' |
| 31 |
|
| 32 |
LOGICAL HIDENP(NUMNPF) |
| 33 |
REAL XN(NUMNPF), YN(NUMNPF), ZN(NUMNPF) |
| 34 |
INTEGER IDN2B(NUMNPF) |
| 35 |
|
| 36 |
LOGICAL GRABRT |
| 37 |
|
| 38 |
DO 110 IELB = 0, NELBLK |
| 39 |
|
| 40 |
C --Set the node element block color |
| 41 |
CALL GRCOLR (IELB) |
| 42 |
|
| 43 |
DO 100 INP = 1, NUMNPF |
| 44 |
|
| 45 |
IF (IS3DIM) THEN |
| 46 |
IF (HIDENP(INP)) GOTO 100 |
| 47 |
END IF |
| 48 |
|
| 49 |
C --If node is dead and of the appropriate element block, draw symbol |
| 50 |
|
| 51 |
IF (IDN2B(INP) .EQ. IELB) THEN |
| 52 |
IF (GRABRT ()) RETURN 1 |
| 53 |
#if NeedsDoubleEscape |
| 54 |
CALL MPD2SY (1, XN(INP), YN(INP), '\\CDO') |
| 55 |
#else |
| 56 |
CALL MPD2SY (1, XN(INP), YN(INP), '\CDO') |
| 57 |
#endif |
| 58 |
END IF |
| 59 |
|
| 60 |
100 CONTINUE |
| 61 |
|
| 62 |
CALL PLTFLU |
| 63 |
110 CONTINUE |
| 64 |
|
| 65 |
RETURN |
| 66 |
END |