Debian Codegraph @

packages/seacas/applications/blot/matedg.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 MATEDG (LENF, IELBST, IEDSET, NEDGES)
9 C=======================================================================
10
11 C --*** MATEDG *** (MESH) Delete edges of selected element block
12 C -- Written by Amy Gilkey - revised 07/06/87
13 C --
14 C --MATEDG deletes all edges that are of a selected element block.
15 C --
16 C --Parameters:
17 C -- LENF - IN - the cumulative face counts by element block
18 C -- IELBST - IN - the element block status (>0 if selected)
19 C -- IEDSET - IN/OUT - the edge line set;
20 C -- (0) = face defining edge; 0 to delete edge
21 C -- NEDGES - IN/OUT - the number of lines in the edge set
22 C --
23 C --Common Variables:
24 C -- Uses NELBLK of /DBNUMS/
25
26 include 'debug.blk'
27 include 'dbnums.blk'
28
29 INTEGER LENF(0:NELBLK)
30 INTEGER IELBST(NELBLK)
31 INTEGER IEDSET(0:2,*)
32
33 nhid = 0
34 DO 120 IEDG = 1, NEDGES
35
36 IFAC = IEDSET(0,IEDG)
37 IF (IFAC .EQ. 0) GOTO 120
38
39 C --Find the face element block
40 DO 100 IELB = 1, NELBLK
41 IF (IFAC .LE. LENF(IELB)) GOTO 110
42 100 CONTINUE
43 110 CONTINUE
44
45 C --Delete edge if face is of a selected element block
46
47 IF (IELBST(IELB) .GT. 0) THEN
48 IEDSET(0,IEDG) = 0
49 nhid = nhid + 1
50 END IF
51 120 CONTINUE
52 if ((cdebug .eq. 'HIDDEN') .and. (idebug .ge. 1))
53 & write (*, '(1x,a,i5)') 'edges in selected block =', nhid
54
55 RETURN
56 END