| 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 SPDSG1 (NNENUM, NENUM, IE2ELB, ISEVOK, NEL, ISEGEL) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** SPDSG1 *** (SPLOT) Find all defined element values |
| 12 |
C -- Written by Amy Gilkey - revised 11/05/87 |
| 13 |
C -- |
| 14 |
C --SPDSG1 returns a list of the defined element indices for an |
| 15 |
C --element variable. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- NNENUM - IN - the number of selected nodes/elements |
| 19 |
C -- NENUM - IN - the selected nodes/elements |
| 20 |
C -- IE2ELB - IN - the element block for each element |
| 21 |
C -- ISEVOK - IN - the element block variable truth table; |
| 22 |
C -- variable of block j exists iff ISEVOK(j) |
| 23 |
C -- NEL - OUT - the number of defined elements |
| 24 |
C -- ISEGEL - OUT - the NENUM indices of the defined elements; |
| 25 |
C -- ISEGEL(0) = the number of defined elements |
| 26 |
|
| 27 |
INTEGER NENUM(*) |
| 28 |
INTEGER IE2ELB(*) |
| 29 |
LOGICAL ISEVOK(*) |
| 30 |
INTEGER ISEGEL(0:*) |
| 31 |
|
| 32 |
NEL = 0 |
| 33 |
DO 100 I = 1, NNENUM |
| 34 |
IF (ISEVOK(IE2ELB(NENUM(I)))) THEN |
| 35 |
NEL = NEL + 1 |
| 36 |
ISEGEL(NEL) = I |
| 37 |
END IF |
| 38 |
100 CONTINUE |
| 39 |
ISEGEL(0) = NEL |
| 40 |
|
| 41 |
RETURN |
| 42 |
END |