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.
29 lines
689 B
29 lines
689 B
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 VECRGS(ND,V,VMAX,VMIN)
|
||
|
DIMENSION V(*)
|
||
|
|
||
|
IF (ND.GE.1) THEN
|
||
|
|
||
|
VMAX = V(1)
|
||
|
VMIN = V(1)
|
||
|
I = 1
|
||
|
10 CONTINUE
|
||
|
IF ((I.LE.ND)) THEN
|
||
|
T = V(I)
|
||
|
VMAX = MAX(VMAX,T)
|
||
|
VMIN = MIN(VMIN,T)
|
||
|
I = I + 1
|
||
|
GO TO 10
|
||
|
|
||
|
END IF
|
||
|
|
||
|
END IF
|
||
|
|
||
|
END
|