Debian Codegraph @

packages/seacas/applications/exotxt/et_dbpini.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 DBPINI (OPTION, NDB, TITLE, NDIM, NUMNP, NUMEL, NELBLK,
9 & NUMNPS, LNPSNL, LNPSDF, NUMESS, LESSEL,
10 & LESSDF, NVARGL, NVARNP, NVAREL, FILNAM)
11 C=======================================================================
12 C --*** DBPINI *** (EXOLIB) Display database title and initial variables
13 C -- Written by Amy Gilkey - revised 10/15/87
14 C -- Revised 8/5/95 to work with EXODUSIIV2 database format
15 C --
16 C --DBPINI displays the database filename (optional) and title and
17 C --the database initial variables.
18 C --
19 C --Parameters:
20 C -- OPTION - IN - '*' to print all, else print options:
21 C -- 'N' to print database name
22 C -- 'T' to print title
23 C -- 'I' to print number of nodes, etc.
24 C -- 'S' to print node set and side set information
25 C -- 'V' to print number of variables
26 C -- NDB - IN - the database file (if OPTION)
27 C -- TITLE - IN - the database title (if OPTION)
28 C -- NDIM - IN - the number of coordinates per node (if OPTION)
29 C -- NUMNP - IN - the number of nodes (if OPTION)
30 C -- NUMEL - IN - the number of elements (if OPTION)
31 C -- NELBLK - IN - the number of element blocks (if OPTION)
32 C -- NUMNPS - IN - the number of node sets (if OPTION)
33 C -- LNPSNL - IN - the length of the node sets node list (if OPTION)
34 C -- LNPSDF - IN - the length of the node set distribution list
35 C -- NUMESS - IN - the number of side sets (if OPTION)
36 C -- LESSEL - IN - the length of the side sets element list
37 C -- (if OPTION)
38 C -- NVARGL - IN - the number of global variables (if OPTION)
39 C -- NVARNP - IN - the number of nodal variables (if OPTION)
40 C -- NVAREL - IN - the number of element variables (if OPTION)
41
42 include 'exodusII.inc'
43
44 CHARACTER*(*) FILNAM
45 CHARACTER*(*) OPTION
46 CHARACTER*(MXLNLN) TITLE
47 INTEGER NDB
48 INTEGER NDIM, NUMNP, NUMEL, NELBLK, NUMNPS,
49 & LNPSNL, LNPSDF, NUMESS, LESSEL, LESSDF
50 LOGICAL ALL
51 ALL = (OPTION .EQ. '*')
52
53 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
54 WRITE(*, 10000)
55 ENDIF
56
57 IF (ALL .OR. (INDEX (OPTION, 'N') .GT. 0)) THEN
58 WRITE (*, 10010) FILNAM(:LENSTR(FILNAM))
59 END IF
60
61 IF (ALL .OR. (INDEX (OPTION, 'T') .GT. 0)) THEN
62 WRITE (*, 10020) TITLE(1:LENSTR(TITLE))
63 END IF
64
65 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
66 WRITE (*, 10030, IOSTAT=IDUM)
67 & NDIM, NUMNP, NUMEL, NELBLK
68 END IF
69
70 IF (ALL .OR. (INDEX (OPTION, 'S') .GT. 0)) THEN
71 If (NUMNPS .LE. 0) THEN
72 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS
73 ELSE
74 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS, LNPSNL, LNPSDF
75 END IF
76 IF (NUMESS .LE. 0) THEN
77 WRITE (*, 10050, IOSTAT=IDUM) NUMESS
78 ELSE
79 WRITE (*, 10050, IOSTAT=IDUM)
80 & NUMESS, LESSEL, LESSDF
81 END IF
82 END IF
83
84 IF (ALL .OR. (INDEX (OPTION, 'V') .GT. 0)) THEN
85 WRITE (*, 10060, IOSTAT=IDUM) NVARGL, NVARNP, NVAREL
86 END IF
87
88 10000 FORMAT (/, 1X, 'DATABASE INITIAL VARIABLES')
89 10010 FORMAT (/, 1X, 'Database: ', A)
90 10020 FORMAT (/, 1X, A)
91 10030 FORMAT (
92 & /, 1X, 'Number of coordinates per node =', I10
93 & /, 1X, 'Number of nodes =', I10
94 & /, 1X, 'Number of elements =', I10
95 & /, 1X, 'Number of element blocks =', I10
96 & )
97 10040 FORMAT (
98 & /, 1X, 'Number of node sets =', I10, :
99 & /, 1X, ' Length of node list =', I10
100 & /, 1X, ' Length of distribution factors list =', I10
101 & )
102 10050 FORMAT
103 & ( 1X, 'Number of side sets =', I10, :
104 & /, 1X, ' Length of element list =', I10
105 & /, 1X, ' Length of distribution factors list =', I10
106 & )
107 10060 FORMAT (
108 & /, 1X, 'Number of global variables =', I10
109 & /, 1X, 'Number of variables at each node =', I10
110 & /, 1X, 'Number of variables at each element =', I10
111 & )
112
113 RETURN
114 END