Debian Codegraph @

packages/seacas/applications/grepos/gp_dbieb1.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
7 C=======================================================================
8 SUBROUTINE DBIEBI (NDB, OPTION, IELB, NUMELB, NUMLNK, NUMATR,
9 & LINK, ATRIB, NATRDM, NLNKDM, *)
10 C=======================================================================
11
12 C --*** DBIEB1 *** (EXOLIB) Read database element block misc.
13 C --
14 C --DBIEB1 reads the element block connectivity and attribute information
15 C --from the database. An error message is displayed if the end of file
16 C --is read.
17 C --
18 C --Parameters:
19 C -- NDB - IN - the database file
20 C -- OPTION - IN - ' ' to not store, '*' to store all, else store options:
21 C -- 'C' to store connectivity
22 C -- 'A' to store attributes
23 C -- IELB - IN - the element block number
24 C -- NUMELB - IN - the number of elements in the block
25 C -- NUMLNK - IN - the number of nodes per element;
26 C -- negate to not store connectivity
27 C -- NUMATR - IN - the number of attributes;
28 C -- negate to not store attributes
29 C -- LINK - OUT - the element connectivity for this block
30 C -- ATRIB - OUT - the attributes for this block
31 C -- NATRDM - IN - dimension of atrib array
32 C -- NLNKDM - IN - dimension of link array
33 C -- * - OUT - return statement if end of file or read error
34
35 include 'exodusII.inc'
36 INTEGER NDB
37 CHARACTER*(*) OPTION
38 INTEGER NUMELB, NUMLNK, NUMATR
39 INTEGER LINK(NLNKDM, *)
40 REAL ATRIB(NATRDM,*)
41
42 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'C') .GT. 0)) THEN
43 if (numelb .gt. 0 .and. numlnk .gt. 0) then
44 call exgelc(ndb, ielb, link, ierr)
45 end if
46 END IF
47
48 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'A') .GT. 0)) THEN
49 if (numatr .gt. 0) then
50 call exgeat(ndb, ielb, atrib, ierr)
51 end if
52 END IF
53
54 RETURN
55
56 END