Debian Codegraph @

packages/seacas/applications/blot/fnde2f.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 FNDE2F (IEL, LENF, IF2EL, NQARY, IFACES, IELB)
9 C=======================================================================
10
11 C --*** FNDE2F *** (MESH) Find faces that make up element
12 C -- Written by Amy Gilkey - revised 07/06/87
13 C --
14 C --FNDE2F finds the surface faces that make up the given element.
15 C --
16 C --Parameters:
17 C -- IEL - IN - the element number
18 C -- LENF - IN - the cumulative face counts by element block
19 C -- IF2EL - IN - the element number of each face
20 C -- NQARY - IN/OUT - input as the maximum length of the IFACES array;
21 C -- output as the length of the IFACES array
22 C -- IFACES - OUT - the surface faces that make up the element
23 C -- IELB - OUT - the element block of the element quarilaterals
24 C --
25 C --Common Variables:
26 C -- Uses NDIM, NELBLK of /DBNUMS/
27
28 include 'dbnums.blk'
29
30 INTEGER LENF(0:NELBLK)
31 INTEGER IF2EL(*)
32 INTEGER IFACES(*)
33
34 NQARY = 0
35 DO 110 IELB = 1, NELBLK
36 DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB)
37 IF (IEL .EQ. IF2EL(IFAC)) THEN
38 NQARY = NQARY + 1
39 IFACES(NQARY) = IFAC
40 END IF
41 100 CONTINUE
42 IF (NQARY .GT. 0) GOTO 120
43 110 CONTINUE
44 IELB = 1
45
46 120 CONTINUE
47 RETURN
48 END