Debian Codegraph @

packages/seacas/applications/fastq/fq_minmax.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 SUBROUTINE MINMAX_FQ (NDIM, N, X, Y, XMIN, XMAX, YMIN, YMAX)
8 C***********************************************************************
9
10 C SUBROUTINE MINMAX_FQ = COMPARES AND RECORDS X AND Y EXTREMES
11
12 C***********************************************************************
13
14 DIMENSION X (NDIM), Y (NDIM)
15 XMIN = X (1)
16 XMAX = X (1)
17 YMIN = Y (1)
18 YMAX = Y (1)
19
20 DO 100 I = 1, N
21 XMIN = AMIN1 (X (I), XMIN)
22 XMAX = AMAX1 (X (I), XMAX)
23 YMIN = AMIN1 (Y (I), YMIN)
24 YMAX = AMAX1 (Y (I), YMAX)
25 100 CONTINUE
26
27 RETURN
28
29 END