Debian Codegraph @

packages/seacas/applications/explore/exp_rdnam1.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 RDNAM1 (NDB, TYPE, NBLK, NVAR, ISEVOK)
8 C=======================================================================
9
10 C --*** RDNAM1 *** (EXOLIB) Internal to RDNAME
11 C --
12 C --RDNAM1 reads the element block variable truth table.
13 C --An error message is displayed if the end of file is read.
14 C --
15 C --Parameters:
16 C -- NDB - IN - the database number
17 C -- NBLK - IN - the number of element blocks
18 C -- NVAR - IN - the number of element variables
19 C -- ISEVOK - OUT - the element block variable truth table;
20 C -- variable i of block j exists iff ISEVOK(i,j) is NOT 0
21
22 include 'exodusII.inc'
23
24 CHARACTER*1 TYPE
25 INTEGER ISEVOK(NVAR,*)
26
27 CHARACTER*80 ERRMSG
28
29 CALL INIINT (NBLK*NVAR, 999, ISEVOK)
30
31 if (nblk .gt. 0 .and. nvar .gt. 0) then
32 if (type .eq. 'E') then
33 call exgvtt (ndb, nblk, nvar, isevok, ierr)
34 else if (type .eq. 'M') then
35 call exgnstt (ndb, nblk, nvar, isevok, ierr)
36 else if (type .eq. 'S') then
37 call exgsstt (ndb, nblk, nvar, isevok, ierr)
38 end if
39 if (ierr .ne. 0) go to 100
40 end if
41
42 RETURN
43
44 100 CONTINUE
45 WRITE (ERRMSG, 10000) 'VARIABLE TRUTH TABLE'
46 GOTO 110
47 110 CONTINUE
48 CALL WDBERR (IERR, ERRMSG)
49
50 RETURN
51
52 10000 FORMAT (A)
53 END