Debian Codegraph @

packages/seacas/applications/blot/cfmax.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 CFMAX (VARNP, NLNKF, LINKF1, FEMIN, FEMAX)
9 C=======================================================================
10
11 C --*** CFMAX *** (DETOUR) Compute min/max values for face
12 C -- Written by Amy Gilkey - revised 03/14/88
13 C --
14 C --CFMAX computes the minimum and maximum value of the nodal variable
15 C --for the face.
16 C --
17 C --Parameters:
18 C -- VARNP - IN - the contour function values
19 C -- NLNKF - IN - the number of nodes per face
20 C -- LINKF1 - IN - the connectivity for the face
21 C -- FEMIN, FEMAX - OUT - minimum and maximum value
22
23 REAL VARNP(*)
24 INTEGER LINKF1(NLNKF)
25
26 C --Compute the minimum and maximum values for the face
27
28 FEMAX = VARNP(LINKF1(1))
29 FEMIN = VARNP(LINKF1(1))
30 DO 100 K = 2, NLNKF
31 FEMAX = MAX (FEMAX, VARNP(LINKF1(K)))
32 FEMIN = MIN (FEMIN, VARNP(LINKF1(K)))
33 100 CONTINUE
34
35 RETURN
36 END