Debian Codegraph @

packages/seacas/applications/ex1ex2v2/ex1_dbinm1.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 DBINM1 (NDB, OPTION, NELBLK, NVAREL, ISEVOK, IEVOK,
9 & IERR, NELBDM, *)
10 C=======================================================================
11 C --*** DBINM1 *** (EXOLIB) Internal to DBINAM
12 C --
13 C --DBINM1 reads the element block variable truth table.
14 C --
15 C --Parameters:
16 C -- NDB - IN - the database number
17 C -- OPTION - IN - ' ' to not store, '*' to store all, else store options:
18 C -- 'T' to store element block variable truth table
19 C -- NELBLK - IN - the number of element blocks
20 C -- NVAREL - IN - the number of element variables
21 C -- ISEVOK - OUT - the element block variable truth table;
22 C -- variable i of block j exists iff ISEVOK(j,i)
23 C -- IEVOK - OUT - the element block variable truth table;
24 C -- variable i of block j exists iff ISEVOK(j,i) is NOT 0
25 C -- IERR - OUT - the returned read error flag
26 C -- * - return statement if error encountered, including end-of-file;
27 C -- NO message is printed
28 C --
29 C --Database must be positioned in front of truth table upon entry;
30 C --upon exit positioned after table.
31
32 INTEGER NDB
33 CHARACTER*(*) OPTION
34 INTEGER NELBLK, NVAREL
35 c LOGICAL ISEVOK(nvarel,*)
36 integer ISEVOK(nvarel,*)
37 INTEGER IEVOK(nvarel,*)
38 INTEGER IERR
39
40 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'T') .GT. 0)) THEN
41 READ (NDB, END=120, ERR=120, IOSTAT=IERR)
42 & ((IEVOK(i,IELB), I=1,NVAREL), IELB=1,NELBLK)
43
44 DO 110 IELB = 1, NELBLK
45 DO 100 I = 1, NVAREL
46 if (ievok(i,ielb) .ne. 0) then
47 isevok(i,ielb) = 1
48 endif
49 c ISEVOK(i,IELB) = (IEVOK(i, IELB) .NE. 0)
50 100 CONTINUE
51 110 CONTINUE
52 ELSE
53 READ (NDB, END=120, ERR=120, IOSTAT=IERR)
54 END IF
55
56 RETURN
57
58 120 CONTINUE
59 RETURN 1
60 END