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.
46 lines
1.3 KiB
46 lines
1.3 KiB
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=======================================================================
|
||
|
INTEGER FUNCTION MAINVW ()
|
||
|
C=======================================================================
|
||
|
|
||
|
C --*** MAINVW *** (MESH) Return the "main" view number
|
||
|
C -- Written by Amy Gilkey - revised 05/26/88
|
||
|
C --
|
||
|
C --MAINVW returns the number of the "main" view for symmetric views.
|
||
|
C --For non-symmetric views, zero is returned.
|
||
|
C --
|
||
|
C --Common Variables:
|
||
|
C -- Uses MSHDEF of /MSHOPT/
|
||
|
C -- Uses XISSYM, YISSYM, LFTSYM, BOTSYM of /VIEWS/
|
||
|
|
||
|
include 'mshopt.blk'
|
||
|
include 'views.blk'
|
||
|
|
||
|
IF (XISSYM .OR. YISSYM) THEN
|
||
|
IF ((.NOT. XISSYM) .OR. LFTSYM) THEN
|
||
|
IF (BOTSYM) THEN
|
||
|
MAINVW = 2
|
||
|
ELSE
|
||
|
MAINVW = 4
|
||
|
END IF
|
||
|
ELSE IF ((.NOT. YISSYM) .OR. BOTSYM) THEN
|
||
|
IF (LFTSYM) THEN
|
||
|
MAINVW = 2
|
||
|
ELSE
|
||
|
MAINVW = 1
|
||
|
END IF
|
||
|
ELSE
|
||
|
MAINVW = 3
|
||
|
END IF
|
||
|
ELSE
|
||
|
MAINVW = 0
|
||
|
END IF
|
||
|
|
||
|
RETURN
|
||
|
END
|