| 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 RELBLK (IELB, NUMELB, NUMLNK, NUMATR, |
| 9 |
& LINK, ATRIB, LNKTMP, *) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** RELBLK *** (GEN3D) Read database element block misc. |
| 13 |
C -- Written by Amy Gilkey - revised 02/27/86 |
| 14 |
C -- |
| 15 |
C --RELBLK reads the element block connectivity and attribute information |
| 16 |
C --from the database. An error message is displayed if the end of file |
| 17 |
C --is read. |
| 18 |
C -- |
| 19 |
C --Parameters: |
| 20 |
C -- IELB - IN - the element block number (for errors) |
| 21 |
C -- NUMELB - IN - the number of elements in the block |
| 22 |
C -- NUMLNK - IN - the number of nodes per element |
| 23 |
C -- NUMATR - IN - the number of attributes |
| 24 |
C -- LINK - OUT - the element connectivity for this block (4 nodes always) |
| 25 |
C -- ATRIB - OUT - the attributes for this block (packed) |
| 26 |
C -- * - return statement if end of file or read error |
| 27 |
C -- |
| 28 |
C --Common Variables: |
| 29 |
C -- Uses NDBIN of /DBASE/ |
| 30 |
|
| 31 |
include 'exodusII.inc' |
| 32 |
INCLUDE 'g3_dbase.blk' |
| 33 |
|
| 34 |
INTEGER LINK(4,NUMELB) |
| 35 |
INTEGER LNKTMP(NUMLNK, NUMELB) |
| 36 |
REAL ATRIB(*) |
| 37 |
|
| 38 |
CHARACTER*5 STRA |
| 39 |
|
| 40 |
if (numlnk .eq. 4) then |
| 41 |
call exgelc(ndbin, ielb, link, ierr) |
| 42 |
if (ierr .ne. 0) goto 10 |
| 43 |
else |
| 44 |
call exgelc(ndbin, ielb, lnktmp, ierr) |
| 45 |
if (ierr .ne. 0) goto 10 |
| 46 |
do 30 i=1, numelb |
| 47 |
do 20 j=1, numlnk |
| 48 |
link(j,i) = lnktmp(j,i) |
| 49 |
20 continue |
| 50 |
30 continue |
| 51 |
end if |
| 52 |
|
| 53 |
if (numatr .gt. 0) then |
| 54 |
call exgeat(ndbin, ielb, atrib, ierr) |
| 55 |
if (ierr .ne. 0) goto 10 |
| 56 |
end if |
| 57 |
|
| 58 |
RETURN |
| 59 |
|
| 60 |
10 CONTINUE |
| 61 |
CALL INTSTR (1, 0, IELB, STRA, LSTRA) |
| 62 |
CALL PRTERR ('FATAL', 'Reading BLOCK ' // STRA(:LSTRA)) |
| 63 |
RETURN 1 |
| 64 |
END |