Debian Codegraph @

packages/seacas/applications/explore/exp_limits.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 C=======================================================================
7 subroutine limits(ndim, numnp, cord)
8 C=======================================================================
9 REAL CORD(NUMNP, NDIM)
10
11 call minmax(numnp, cord(1,1), xmin, xmax)
12 call minmax(numnp, cord(1,2), ymin, ymax)
13 if (ndim .eq. 3) then
14 call minmax(numnp, cord(1,3), zmin, zmax)
15 else
16 zmin = 0
17 zmax = 0
18 end if
19
20 WRITE (*, *) ' '
21 WRITE (*, *) 'Mesh Limits: '
22 WRITE (*, 10000) 'X', XMIN, 'X', XMAX, XMAX-XMIN
23 IF (NDIM .GE. 2) THEN
24 WRITE (*, 10000) 'Y', YMIN, 'Y', YMAX, YMAX-YMIN
25 ENDIF
26 IF (NDIM .EQ. 3) THEN
27 WRITE (*, 10000) 'Z', ZMIN, 'Z', ZMAX, ZMAX-ZMIN
28 END IF
29 10000 FORMAT( ' Min ',A1,' = ',1PE16.9,', Max ',A1,' = ',
30 & 1PE16.9,', Range = ',1PE16.9)
31 return
32 end