Debian Codegraph @

packages/seacas/applications/blot/setmod.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 SETMOD (IVIEW, MMOD, MTYP)
9 C=======================================================================
10
11 C --*** SETMOD *** (DETOUR) Set display mode and type
12 C -- Written by Amy Gilkey - revised 04/06/88
13 C --
14 C --SETMOD sets the display mode and mode type of one or all views.
15 C --Counts the number of variables needed, if changed
16 C --
17 C --Parameters:
18 C -- IVIEW - IN - the view to be set, 0 for all
19 C -- MMOD - IN - the display mode to be set
20 C -- MTYP - IN - the display mode type to be set
21 C --
22 C --Common Variables:
23 C -- Uses MSHDEF of /MSHOPT/
24 C -- Sets MODDET, MODTYP, NNDVAR, NEDVAR of /DETOPT/
25
26 include 'mshopt.blk'
27 include 'detopt.blk'
28
29 CHARACTER*(*) MMOD, MTYP
30
31 IF (IVIEW .GE. 1) THEN
32 IF (MMOD .EQ. 'NONE') THEN
33 MODDET(IVIEW) = 'NONE'
34 MODTYP(IVIEW) = ' '
35 ELSE
36 MODDET(IVIEW) = MMOD
37 MODTYP(IVIEW) = MTYP
38 END IF
39 ELSE
40 IF (MMOD .EQ. 'NONE') THEN
41 DO 100 I = 1, 4
42 MODDET(I) = 'NONE'
43 MODTYP(I) = ' '
44 100 CONTINUE
45 ELSE
46 DO 110 I = 1, 4
47 IF ((MSHDEF(I) .EQ. 'NONE')
48 & .OR. (MSHDEF(I) .EQ. 'EMPTY')) THEN
49 MODDET(I) = 'NONE'
50 MODTYP(I) = ' '
51 ELSE
52 MODDET(I) = MMOD
53 MODTYP(I) = MTYP
54 END IF
55 110 CONTINUE
56 END IF
57 END IF
58
59 C --Calculate the number of variables needed
60 CALL CNTVAR (MODDET, MODTYP, IDTVAR, NNDVAR, NEDVAR)
61
62 RETURN
63 END