Debian Codegraph @

packages/seacas/applications/grepos/gp_swpess.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 SWPESS (NUMESS, IDESS, NEESS, NEDSS,
9 * IXEESS, IXEDSS, LTEESS, LTSSS, LTSNC, FAC, ALLONE, NONQUD,
10 * COMTOP)
11 C=======================================================================
12
13 C --Parameters:
14 C --
15 C -- NUMESS - IN/OUT - the number of element side sets
16 C -- LESSEL - IN/OUT - the length of the element side sets element list
17 C -- IDESS - IN/OUT - the element side set ID for each set
18 C -- NEESS - IN/OUT - the number of elements for each set
19 C -- NEDSS - IN/OUT - the number of dist-fac for each set
20 C -- IXEESS - IN/OUT - the index of the first element for each set
21 C -- IXEDSS - IN/OUT - the index of the first dist-fac for each set
22 C -- LTEESS - IN/OUT - the elements for all sets
23 C -- LTSSS - IN/OUT - the sides for all sets
24 C -- LTSNC - IN/OUT - the face count for each element/side in the list
25 C -- FACESS - IN/OUT - the distribution factors for all sets????????????
26
27 C -- USESDF - IN - true if df are non-unity, false if all unity
28 C -- NONQUAD - IN - true if model contains non-hex/non-quad elements
29
30 INTEGER IDESS(*) ! NUMESS
31 INTEGER NEESS(*) ! NUMESS
32 INTEGER NEDSS(*) ! NUMESS
33 INTEGER IXEESS(*) ! NUMESS
34 INTEGER IXEDSS(*) ! NUMESS
35 INTEGER LTEESS(*) ! LESSEL
36 INTEGER LTSSS(*) ! LESSEL
37 INTEGER LTSNC(*) ! LESSEL
38 REAL FAC(*) ! LESSDL
39 LOGICAL ALLONE, NONQUD
40 CHARACTER*(*) COMTOP
41
42 IF (COMTOP(:3) .NE. 'SHE') THEN
43 CALL PRTERR ('PROGRAM',
44 * 'Swapping of sidesets on non-shell elements not supported')
45 return
46 END IF
47 DO 30 I=1, NUMESS
48 IF (IDESS(I) .LT. 0) THEN
49 CALL SWPS1(NEESS(I), LTSSS(IXEESS(I)))
50 IDESS(I) = -IDESS(I)
51 END IF
52 30 CONTINUE
53 RETURN
54 END
55
56 subroutine swps1(numsid, side)
57
58 integer numsid
59 integer side(*)
60
61 do 10 i = 1, numsid
62 side(i) = 3 - side(i)
63 10 continue
64 return
65 end