Debian Codegraph @

packages/seacas/applications/blot/vec.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 C=======================================================================
8 SUBROUTINE VEC (IS3DIM, X0, Y0, Z0, XVAR, YVAR, ZVAR,
9 & VECSCL, VWSCL)
10 C=======================================================================
11
12 C --*** VEC *** (DETOUR) Plot vector
13 C -- Written by Amy Gilkey - revised 04/16/85
14 C --
15 C --VEC displays a vector starting at the given coordinates. The vector
16 C --represents the given X, Y, and Z values.
17 C --
18 C --Parameters:
19 C -- IS3DIM - IN - true iff 3D versus 2D
20 C -- X0, Y0, Z0 - IN - the vector coordinates
21 C -- XVAR, YVAR, ZVAR - IN - the vector components
22 C -- VECSCL - IN - the vector scale factor
23 C -- VWSCL - IN - 1.0 if single view, 0.5 if multiple
24
25 LOGICAL IS3DIM
26
27 LOGICAL EXISTS
28
29 EXISTS (M) = (MOD(M,2) .NE. 0)
30
31 IF ((XVAR .EQ. 0.0) .AND. (YVAR .EQ. 0.0)) GOTO 100
32 X1 = X0 + XVAR * VECSCL
33 Y1 = Y0 + YVAR * VECSCL
34 Z1 = Z0 + ZVAR * VECSCL
35 CALL MP2VC (1, X0, Y0, X1, Y1, DX0, DY0, DX1, DY1, MASK)
36 RAT = .0075 * VWSCL
37 IF (EXISTS (MASK)) THEN
38 CALL PLTARR (DX0, DY0, DX1, DY1, .5, RAT)
39 END IF
40
41 100 CONTINUE
42 RETURN
43 END