| 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 RENELB (NELBLK, IOFFNP, IXNP, NUMELB, NUMLNK, LINK) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** RENELB *** (GJOIN) Renumber connectivity in element blocks |
| 12 |
C -- Written by Amy Gilkey - revised 09/29/87 |
| 13 |
C -- |
| 14 |
C --RENELB renumbers the nodes in the connectivity arrays. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NELBLK - IN - the number of element blocks |
| 18 |
C -- IOFFNP - IN - the nodal offset: if positive, add to node number; |
| 19 |
C -- if negative, use IXNP |
| 20 |
C -- IXNP - IN - the new node number for each node |
| 21 |
C -- NUMELB - IN - the number of elements in each block |
| 22 |
C -- NUMLNK - IN - the number of nodes per element in each block |
| 23 |
C -- LINK - IN - the connectivity for each block |
| 24 |
|
| 25 |
INTEGER IXNP(*) |
| 26 |
INTEGER NUMELB(*) |
| 27 |
INTEGER NUMLNK(*) |
| 28 |
INTEGER LINK(*) |
| 29 |
|
| 30 |
ILNK = 1 |
| 31 |
|
| 32 |
DO 100 IELB = 1, NELBLK |
| 33 |
CALL RENIX (NUMELB(IELB) * NUMLNK(IELB), |
| 34 |
& IOFFNP, IXNP, LINK(ILNK)) |
| 35 |
ILNK = ILNK + NUMLNK(IELB) * NUMELB(IELB) |
| 36 |
100 CONTINUE |
| 37 |
|
| 38 |
RETURN |
| 39 |
END |