Debian Codegraph @

packages/seacas/applications/blot/mxepn.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 MXEPN (NUME, NLNKE, LINKE, NFPN)
9 C=======================================================================
10
11 C --*** MXEPN *** (MESH) Count number of elements per node
12 C -- Written by Amy Gilkey - revised 10/26/87
13 C --
14 C --MXEPN counts the maximum number of elements that a node is in.
15 C --
16 C --Parameters:
17 C -- NUME - IN - the number of elements
18 C -- NLNKE - IN - the number of nodes per element
19 C -- LINKE - IN - the original connectivity (some nodes may be 0)
20 C -- NFPN - SCRATCH - size = 1+NUMNP
21 C --
22 C --Common Variables:
23 C -- Uses NUMNP of /DBNUMS/
24
25 include 'debug.blk'
26 include 'dbnums.blk'
27 include 'd3nums.blk'
28
29 INTEGER LINKE(NLNKE,NUME)
30 INTEGER NFPN(0:NUMNP)
31
32 DO 110 IEL = 1, NUME
33 DO 100 ILINK = 1, NLNKE
34 INP = LINKE(ILINK,IEL)
35 NFPN(INP) = NFPN(INP) + 1
36 100 CONTINUE
37 110 CONTINUE
38 RETURN
39 END
40
41 integer function mxepnmx(nfpn)
42 include 'dbnums.blk'
43
44 integer nfpn(0:numnp)
45 MXEPNMX = 0
46 DO 120 INP = 1, NUMNP
47 MXEPNMX = MAX (MXEPNMX, NFPN(INP))
48 120 CONTINUE
49 RETURN
50 END