Debian Codegraph @

packages/seacas/applications/fastq/fq_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 FQDBPINI (OPTION, TITLE, NDIM, NUMNP, NUMEL, NELBLK,
9 & NUMNPS, LNPSNL, LNPSDF, NUMESS, LESSEL, LESSNL,
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 -- TITLE - IN - the database title (if OPTION)
27 C -- NDIM - IN - the number of coordinates per node (if OPTION)
28 C -- NUMNP - IN - the number of nodes (if OPTION)
29 C -- NUMEL - IN - the number of elements (if OPTION)
30 C -- NELBLK - IN - the number of element blocks (if OPTION)
31 C -- NUMNPS - IN - the number of node sets (if OPTION)
32 C -- LNPSNL - IN - the length of the node sets node list (if OPTION)
33 C -- LNPSDF - IN - the length of the node set distribution list
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 -- 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 NDIM, NUMNP, NUMEL, NELBLK, NUMNPS,
48 & LNPSNL, LNPSDF, NUMESS, LESSEL, LESSNL, LESSDF
49 LOGICAL ALL
50 ALL = (OPTION .EQ. '*')
51
52 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
53 WRITE(*, 10000)
54 ENDIF
55
56 IF (ALL .OR. (INDEX (OPTION, 'N') .GT. 0)) THEN
57 WRITE (*, 10010) FILNAM(:LENSTR(FILNAM))
58 END IF
59
60 IF (ALL .OR. (INDEX (OPTION, 'T') .GT. 0)) THEN
61 WRITE (*, 10020) TITLE(1:LENSTR(TITLE))
62 END IF
63
64 IF (ALL .OR. (INDEX (OPTION, 'I') .GT. 0)) THEN
65 WRITE (*, 10030, IOSTAT=IDUM)
66 & NDIM, NUMNP, NUMEL, NELBLK
67 END IF
68
69 IF (ALL .OR. (INDEX (OPTION, 'S') .GT. 0)) THEN
70 If (NUMNPS .LE. 0) THEN
71 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS
72 ELSE
73 WRITE (*, 10040, IOSTAT=IDUM) NUMNPS, LNPSNL, LNPSDF
74 END IF
75 IF (NUMESS .LE. 0) THEN
76 WRITE (*, 10050, IOSTAT=IDUM) NUMESS
77 ELSE
78 WRITE (*, 10050, IOSTAT=IDUM)
79 & NUMESS, LESSEL, LESSNL, LESSDF
80 END IF
81 END IF
82
83 IF (ALL .OR. (INDEX (OPTION, 'V') .GT. 0)) THEN
84 WRITE (*, 10060, IOSTAT=IDUM) NVARGL, NVARNP, NVAREL
85 END IF
86
87 10000 FORMAT (/, 1X, 'DATABASE INITIAL VARIABLES')
88 10010 FORMAT (/, 1X, 'Database: ', A)
89 10020 FORMAT (/, 1X, A)
90 10030 FORMAT (
91 & /, 1X, 'Number of coordinates per node =', I10
92 & /, 1X, 'Number of nodes =', I10
93 & /, 1X, 'Number of elements =', I10
94 & /, 1X, 'Number of element blocks =', I10
95 & )
96 10040 FORMAT (
97 & /, 1X, 'Number of node sets =', I10, :
98 & /, 1X, ' Length of node list =', I10
99 & /, 1X, ' Length of distribution factors list =', I10
100 & )
101 10050 FORMAT
102 & ( 1X, 'Number of side sets =', I10, :
103 & /, 1X, ' Length of element list =', I10
104 & /, 1X, ' Length of node 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