Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.2 KiB

C Copyright(C) 1999-2020 National Technology & Engineering Solutions
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C See packages/seacas/LICENSE for details
C=======================================================================
SUBROUTINE CFMAX (VARNP, NLNKF, LINKF1, FEMIN, FEMAX)
C=======================================================================
C --*** CFMAX *** (DETOUR) Compute min/max values for face
C -- Written by Amy Gilkey - revised 03/14/88
C --
C --CFMAX computes the minimum and maximum value of the nodal variable
C --for the face.
C --
C --Parameters:
C -- VARNP - IN - the contour function values
C -- NLNKF - IN - the number of nodes per face
C -- LINKF1 - IN - the connectivity for the face
C -- FEMIN, FEMAX - OUT - minimum and maximum value
REAL VARNP(*)
INTEGER LINKF1(NLNKF)
C --Compute the minimum and maximum values for the face
FEMAX = VARNP(LINKF1(1))
FEMIN = VARNP(LINKF1(1))
DO 100 K = 2, NLNKF
FEMAX = MAX (FEMAX, VARNP(LINKF1(K)))
FEMIN = MIN (FEMIN, VARNP(LINKF1(K)))
100 CONTINUE
RETURN
END