| 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 MAKE2B (NELBLK, LENE, IE2ELB) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** MAKE2B *** (BLOT) Create element to element block index |
| 12 |
C -- Written by Amy Gilkey - revised 09/08/87 |
| 13 |
C -- |
| 14 |
C --MAKE2B creates a list of the element block for each element. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NELBLK - IN - the number of element blocks to read |
| 18 |
C -- LENE - IN - the cumulative element counts by element block |
| 19 |
C -- IE2ELB - OUT - the element block for each element |
| 20 |
C -- filled with the element block number, not ID |
| 21 |
|
| 22 |
INTEGER NELBLK |
| 23 |
INTEGER LENE(0:NELBLK) |
| 24 |
INTEGER IE2ELB(*) |
| 25 |
|
| 26 |
DO 110 IELB = 1, NELBLK |
| 27 |
DO 100 IEL = LENE(IELB-1)+1, LENE(IELB) |
| 28 |
IE2ELB(IEL) = IELB |
| 29 |
100 CONTINUE |
| 30 |
110 CONTINUE |
| 31 |
|
| 32 |
RETURN |
| 33 |
END |