Debian Codegraph @

packages/seacas/applications/exotxt/et_wress.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 WRESS (NTXT, NUMESS, LESSEL, LESSNL, LESSDF,
9 & IDESS, NEESS, NDESS, IXEESS, IXDESS, LTEESS,
10 & LTSESS, FACESS, NNESS, IXNESS, LTNESS, LTNNN )
11 C=======================================================================
12
13 C --*** WRESS *** (EXOTXT) Write database nodal point sets
14 C -- Written by Amy Gilkey - revised 02/27/86
15 C -- Modified for ExodusIIv2 database format 10/12/95
16 C --
17 C --WRESS writes the element side set information from the database.
18 C --
19 C --Parameters:
20 C -- NTXT - IN - the text file
21 C -- NUMESS - IN - the number of side sets
22 C -- LESSEL - IN - the length of the element side sets element list
23 C -- LESSNL - IN - the length of the element side sets node list
24 C -- LESSDF - IN - the length of the side set dist factors list
25 C -- IDESS - IN - array containing side set IDS
26 C -- NEESS - IN - array containing the number of sides for each sets
27 C -- NDESS - IN - array containing the number of dist
28 C factors for each set
29 C -- IXEESS - IN - array containing the indices into the
30 C LTEESS array which are the locations of the 1st
31 C element of each set
32 C -- IXDESS - IN - array containing the indices into the
33 C FACESS array which are the locations of the 1st
34 C distribution factor for each set.
35 C -- LTEESS - IN - array containing the elements for all side
36 C sets. Internal element IDS are used in this list
37 C -- LTSESS - IN - array containing the sides for all side sets
38 C -- FACESS - IN - array containing dist factors for all side sets
39 C -- NNESS - IN - the number of nodes for each side set
40 C -- IXNESS - IN - index into LTNESS - the 1st node for each side set
41 C -- LTNESS - IN - array of nodes for all side sets
42 C -- LTNNN - IN - array of number of nodes for each side in a side set
43
44 INTEGER NTXT
45 INTEGER NUMESS
46 INTEGER LESSEL
47 INTEGER LESSNL
48 INTEGER LESSDF
49 INTEGER IDESS(*)
50 INTEGER NEESS(*)
51 INTEGER NDESS(*)
52 INTEGER IXEESS(*)
53 INTEGER IXDESS(*)
54 INTEGER LTEESS(*)
55 INTEGER LTSESS(*)
56 REAL FACESS(*)
57 INTEGER NNESS(*)
58 INTEGER IXNESS(*)
59 INTEGER LTNESS(*)
60 INTEGER LTNNN(*)
61
62 WRITE (NTXT,'(A, I7)') '! Number of Side Sets', NUMESS
63 WRITE (NTXT, 10020) LESSEL, LESSNL, LESSDF,
64 & '! Element list, Node list, Dist Fact lengths'
65
66 DO 100 IESS = 1, NUMESS
67 WRITE (NTXT, 10025) IDESS(IESS),
68 & NEESS(IESS), NNESS(IESS), NDESS(IESS),
69 & '! ID, #sides, #nodes, #dist fact'
70
71 WRITE (NTXT, '(A)') '! Elements and sides for side sets'
72 C Element in side set
73 IS = IXEESS(IESS)
74 IE = IXEESS(IESS) + NEESS(IESS) - 1
75 if (is .le. ie)
76 & WRITE (NTXT, 10000) (LTEESS(NL), LTSESS(NL), NL=IS,IE)
77
78 WRITE (NTXT, '(A)')
79 & '! Nodes and Distribution Factors for side sets'
80 C Nodes and Distribution Factors for each side set
81 IS = IXDESS(IESS)
82 IE = IXDESS(IESS) + NDESS(IESS) - 1
83 if (is .le. ie)
84 & WRITE (NTXT, 10010) (LTNESS(NL), FACESS(NL), NL=IS,IE)
85 100 CONTINUE
86
87 RETURN
88 10000 FORMAT (6(I10,1x,i1,1x))
89 10010 FORMAT (I10, 1pE16.7)
90 10020 FORMAT (3I10, 4X, A)
91 10025 FORMAT (4I10, 4X, A)
92 END