Debian Codegraph @

packages/seacas/applications/explore/exp_rdeb1.f

raw
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 C=======================================================================
7 SUBROUTINE RDEB1 (NDB, IDELB, NUMELB, NUMLNK, NUMATR,
8 & LINK, ATRIB, ATRNM, NAMLEN)
9 C=======================================================================
10
11 C --*** RDEB1 *** (EXPLORE) Read database element block misc.
12 C --
13 C --RDEB1 reads the element block connectivity and attribute information
14 C --from the database. An error message is displayed if the end of file
15 C --is read.
16 C --
17 C --Parameters:
18 C -- NDB - IN - the database file
19 C -- IDELB - IN - the element block number (for errors)
20 C -- NUMELB - IN - the number of elements in the block
21 C -- NUMLNK - IN - the number of nodes per element
22 C -- NUMATR - IN - the number of attributes
23 C -- LINK - OUT - the element connectivity for this block
24 C -- ATRIB - OUT - the attributes for this block
25 C --
26 include 'exodusII.inc'
27
28 INTEGER LINK(*)
29 REAL ATRIB(*)
30
31 CHARACTER*80 ERRMSG
32 CHARACTER*(NAMLEN) ATRNM(*)
33
34 IF (NUMELB .GT. 0 .AND. NUMLNK .GT. 0) THEN
35 CALL EXGELC (NDB, IDELB, LINK, IERR)
36 IF (IERR .NE. 0) GO TO 100
37 END IF
38
39 IF (NUMELB .GT. 0 .AND. NUMATR .GT. 0) THEN
40 CALL EXGEAT (NDB, IDELB, ATRIB, IERR)
41 IF (IERR .NE. 0) GO TO 110
42
43 CALL EXGEAN (NDB, IDELB, NUMATR, ATRNM, IERR)
44 IF (IERR .NE. 0) GO TO 115
45 END IF
46
47 RETURN
48
49 100 CONTINUE
50 WRITE (ERRMSG, 10000, IOSTAT=IDUM)
51 * 'CONNECTIVITY for block', IDELB
52 GOTO 120
53 110 CONTINUE
54 WRITE (ERRMSG, 10000, IOSTAT=IDUM)
55 * 'ATTRIBUTES for block', IDELB
56 GOTO 120
57 115 CONTINUE
58 WRITE (ERRMSG, 10000, IOSTAT=IDUM)
59 * 'ATTRIBUTE NAMES for block', IDELB
60 GOTO 120
61 120 CONTINUE
62 CALL WDBERR (IERR, ERRMSG)
63
64 RETURN
65
66 10000 FORMAT (5 (A, I12))
67 END