| 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 ZMFIXD (NELBLK, NUMELB, NUMLNK, LINK, NUMNP, IXNP) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** ZMFIXD *** (GJOIN) Find nodes in element blocks |
| 12 |
C -- Written by Amy Gilkey - revised 01/20/88 |
| 13 |
C -- |
| 14 |
C --ZMFIXD finds the nodes that are within the existing element blocks. |
| 15 |
C --The new indices of the nodes are stored. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- NELBLK - IN - the number of element blocks |
| 19 |
C -- NUMELB - IN - the number of elements in each element block |
| 20 |
C -- NUMLNK - IN - the number of nodes per element in each element block |
| 21 |
C -- LINK - IN - the connectivity for all elements |
| 22 |
C -- NUMNP - IN/OUT - the number of nodes; returned compressed |
| 23 |
C -- IXNP - OUT - the index of the compressed node; <= 0 if deleted |
| 24 |
|
| 25 |
INTEGER NUMELB(*) |
| 26 |
INTEGER NUMLNK(*) |
| 27 |
INTEGER LINK(*) |
| 28 |
INTEGER IXNP(*) |
| 29 |
|
| 30 |
DO 100 INP = 1, NUMNP |
| 31 |
IXNP(INP) = 0 |
| 32 |
100 CONTINUE |
| 33 |
|
| 34 |
IXL0 = 0 |
| 35 |
DO 130 IELB = 1, NELBLK |
| 36 |
DO 120 NE = 1, NUMELB(IELB) |
| 37 |
DO 110 K = 1, NUMLNK(IELB) |
| 38 |
IXNP(LINK(IXL0+K)) = 1 |
| 39 |
110 CONTINUE |
| 40 |
IXL0 = IXL0 + NUMLNK(IELB) |
| 41 |
120 CONTINUE |
| 42 |
130 CONTINUE |
| 43 |
|
| 44 |
C --Index nodes of selected element block within the zoom mesh |
| 45 |
|
| 46 |
JNP = 0 |
| 47 |
DO 140 INP = 1, NUMNP |
| 48 |
IF (IXNP(INP) .GT. 0) THEN |
| 49 |
JNP = JNP + 1 |
| 50 |
IXNP(INP) = JNP |
| 51 |
END IF |
| 52 |
140 CONTINUE |
| 53 |
|
| 54 |
NUMNP = JNP |
| 55 |
|
| 56 |
RETURN |
| 57 |
END |