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.

39 lines
1.2 KiB

2 years ago
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 MINMXL (NPTS, PTOK, PTS, VMIN, VMAX)
C=======================================================================
C --*** MINMXL *** (ETCLIB) Calculate min/max value in selected list
C -- Written by Amy Gilkey - revised 11/10/87
C --
C --MINMXL calculates the minimum and maximum of the data selected by
C --a logical value.
C --
C --Parameters:
C -- NPTS - IN - the number of points
C -- ISOK - IN - use point i iff ISOK(i)
C -- PTS - IN - the points
C -- VMIN, VMAX - OUT - the maximum and maximum value of the points
INTEGER NPTS
LOGICAL PTOK(*)
REAL PTS(*)
REAL VMIN, VMAX
VMIN = 1.0E+30
VMAX = -1.0E+30
DO 10 I = 1, NPTS
IF (PTOK(I)) THEN
VMIN = MIN (VMIN, PTS(I))
VMAX = MAX (VMAX, PTS(I))
END IF
10 CONTINUE
RETURN
END