Debian Codegraph @

packages/seacas/applications/blot/ixvw.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 INTEGER FUNCTION IXVW (INCEMP, IVWNUM)
9 C=======================================================================
10
11 C --*** IXVW *** (MESH) Return the index of the Nth defined view
12 C -- Written by Amy Gilkey - revised 10/08/87
13 C --
14 C --IXVW returns the index of IVWNUMth defined view, which may include
15 C --empty views. If there are not IVWNUM defined views, zero is returned.
16 C --
17 C --Parameters:
18 C -- INCEMP - IN - a view with an empty mode are returned iff true
19 C -- IVWNUM - IN - the view number
20 C --
21 C --Common Variables:
22 C -- Uses MSHDEF of /MSHOPT/
23
24 include 'mshopt.blk'
25
26 LOGICAL INCEMP
27
28 IVW = 0
29 DO 100 IXVW = 1, 4
30 IF (MSHDEF(IXVW) .NE. 'NONE') THEN
31 IF (INCEMP .OR. (MSHDEF(IXVW) .NE. 'EMPTY')) THEN
32 IVW = IVW + 1
33 IF (IVW .GE. IVWNUM) GOTO 110
34 END IF
35 END IF
36 100 CONTINUE
37 IXVW = 0
38 110 CONTINUE
39
40 RETURN
41 END