Debian Codegraph @

packages/seacas/applications/blot/filnpf.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 FILNPF (NLNKF, LINKF1, NFACES, MAXNPF, NPFS, NOVER,
9 * NUMNP)
10 C=======================================================================
11
12 C --*** FILNPF *** (MESH) Point to face from NPFS
13 C -- Written by Amy Gilkey - revised 10/27/87
14 C -- Sam Key, 06/01/85
15 C --
16 C --FILNPF puts a pointer to the given face into each of the face's node
17 C --NPFS array.
18 C --
19 C --Parameters:
20 C -- NLNKF - IN - the number of nodes per face
21 C -- LINKF1 - IN - the connectivity for the face
22 C -- NFACES - IN - the face number
23 C -- MAXNPF - IN - the maximum length of the NPFS entry
24 C -- NPFS - IN/OUT - the list of unmatched faces containing a node;
25 C -- (0,i) = the length of the list
26 C -- NOVER - IN/OUT - the number of overrun errors
27
28 include 'minmax.blk'
29
30 INTEGER LINKF1(NLNKF)
31 INTEGER NPFS(NUMNP,0:MAXNPF)
32
33 DO 100 ILINK = 1, NLNKF
34 INF = LINKF1(ILINK)
35 IF (NPFS(INF,0) .LT. MAXNPF) THEN
36 L = NPFS(INF,0) + 1
37 NPFS(INF,L) = NFACES
38 NPFS(INF,0) = L
39 minnod = min(minnod, inf)
40 maxnod = max(maxnod, inf)
41 ELSE
42 NOVER = NOVER + 1
43 END IF
44 100 CONTINUE
45
46 RETURN
47 END