Debian Codegraph @

packages/seacas/libraries/suplib/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, NUMESS, LESSEL, LESSNL,
10 & NVARHI, NVARGL, NVARNP, NVAREL)
11 C=======================================================================
12
13 C --*** DBPINI *** (EXOLIB) Display database title and initial variables
14 C -- Written by Amy Gilkey - revised 10/15/87
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 -- NUMESS - IN - the number of side sets (if OPTION)
35 C -- LESSEL - IN - the length of the side sets element list
36 C -- (if OPTION)
37 C -- LESSNL - IN - the length of the side sets node list (if OPTION)
38 C -- NVARHI - IN - the number of history variables (if OPTION)
39 C -- NVARGL - IN - the number of global variables (if OPTION)
40 C -- NVARNP - IN - the number of nodal variables (if OPTION)
41 C -- NVAREL - IN - the number of element variables (if OPTION)
42
43 CHARACTER*(*) OPTION
44 INTEGER NDB
45 CHARACTER*80 TITLE
46 INTEGER NDIM, NUMNP, NUMEL, NELBLK,
47 & NUMNPS, LNPSNL, NUMESS, LESSEL, LESSNL
48
49 CHARACTER*132 FILNAM
50
51 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'N') .GT. 0)) THEN
52 INQUIRE (NDB, NAME=FILNAM)
53 WRITE (*, *)
54 WRITE (*, 10040) 'Database: ', FILNAM(:LENSTR(FILNAM))
55 END IF
56
57 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'T') .GT. 0)) THEN
58 WRITE (*, *)
59 WRITE (*, 10040) TITLE(1:LENSTR(TITLE))
60 END IF
61
62 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
63 WRITE (*, 10000, IOSTAT=IDUM)
64 & NDIM, NUMNP, NUMEL, NELBLK
65 10000 FORMAT (
66 & /, 1X, 'Number of coordinates per node =', I12
67 & /, 1X, 'Number of nodes =', I12
68 & /, 1X, 'Number of elements =', I12
69 & /, 1X, 'Number of element blocks =', I12
70 & )
71 END IF
72
73 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'S') .GT. 0)) THEN
74 IF (NUMNPS .GT. 0) THEN
75 WRITE (*, 10010, IOSTAT=IDUM)
76 & NUMNPS, LNPSNL
77 ELSE
78 WRITE (*, 10010, IOSTAT=IDUM)
79 & NUMNPS
80 END IF
81 10010 FORMAT (
82 & /, 1X, 'Number of node sets =', I12, :
83 & /, 1X, ' Length of node list =', I12
84 & )
85 IF (NUMESS .GT. 0) THEN
86 WRITE (*, 10020, IOSTAT=IDUM)
87 & NUMESS, LESSEL, LESSNL
88 ELSE
89 WRITE (*, 10020, IOSTAT=IDUM)
90 & NUMESS
91 END IF
92 10020 FORMAT
93 & ( 1X, 'Number of side sets =', I12 :
94 & /, 1X, ' Length of element list =', I12
95 & /, 1X, ' Length of node list =', I12
96 & )
97 END IF
98
99 IF ((OPTION .EQ. '*') .OR. (INDEX (OPTION, 'V') .GT. 0)) THEN
100 WRITE (*, 10030, IOSTAT=IDUM) NVARHI, NVARGL, NVARNP, NVAREL
101 10030 FORMAT (
102 & /, 1X, 'Number of history variables =', I12
103 & /, 1X, 'Number of global variables =', I12
104 & /, 1X, 'Number of variables at each node =', I12
105 & /, 1X, 'Number of variables at each element =', I12
106 & )
107 END IF
108
109 RETURN
110 10040 FORMAT (1X, 5A)
111 END