| 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 NDEFVW (INCEMP) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** NDEFVW *** (MESH) Return the number of defined views |
| 12 |
C -- Written by Amy Gilkey - revised 10/08/87 |
| 13 |
C -- |
| 14 |
C --NDEFVW returns the number of defined views, which may include |
| 15 |
C --empty views. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- INCEMP - IN - empty modes are included in the number of modes |
| 19 |
C -- iff true |
| 20 |
C -- |
| 21 |
C --Common Variables: |
| 22 |
C -- Uses MSHDEF of /MSHOPT/ |
| 23 |
|
| 24 |
include 'mshopt.blk' |
| 25 |
|
| 26 |
LOGICAL INCEMP |
| 27 |
|
| 28 |
INTEGER NUMMOD |
| 29 |
|
| 30 |
NDEFVW = 4 - NUMMOD (MSHDEF, ' ', 'NONE', ' ') |
| 31 |
IF (.NOT. INCEMP) |
| 32 |
& NDEFVW = NDEFVW - NUMMOD (MSHDEF, ' ', 'EMPTY', ' ') |
| 33 |
|
| 34 |
RETURN |
| 35 |
END |