| 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 |
SUBROUTINE TRBLK (IDELB, NUMELB, NUMLNK, MAT, NELBLK, NNODES) |
| 8 |
DIMENSION IDELB(*), NUMELB(*), NUMLNK(*), MAT(6,*) |
| 9 |
|
| 10 |
IBEG = 0 |
| 11 |
IEND = 0 |
| 12 |
DO 10 I=1, NELBLK |
| 13 |
if (numlnk(i) .ne. nnodes) then |
| 14 |
CALL PRTERR('FATAL', |
| 15 |
* 'Numbers only handles 3D hex or 2D quadrilateral elements') |
| 16 |
STOP 'Element Error' |
| 17 |
else |
| 18 |
IBEG = IEND + 1 |
| 19 |
IEND = IEND + NUMELB(I) |
| 20 |
MAT(1,I) = IDELB(I) |
| 21 |
MAT(2,I) = NUMELB(I) |
| 22 |
MAT(3,I) = IBEG |
| 23 |
MAT(4,I) = IEND |
| 24 |
MAT(5,I) = 1 |
| 25 |
MAT(6,I) = I |
| 26 |
end if |
| 27 |
10 CONTINUE |
| 28 |
RETURN |
| 29 |
END |