| 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 PLOTER (A, CURPRO, NEUTRL, |
| 9 |
& NAMES, NPTIMS, IPTIMS, TIMES, WHOTIM, NLNKE, ISEVOK, |
| 10 |
& NENUM, XN, YN, ZN, XE, YE, ZE, |
| 11 |
& NAMECO, LENF, NLNKF, KLINKF, LENL, KLNSET, |
| 12 |
& IE2ELB, NEWELB, IELBST, |
| 13 |
& KNPSUR, |
| 14 |
& ISSNPS, IDNPS, ISSESS, IDESS, LIDSP, BLKCOL, |
| 15 |
& IDELB, NAMELB, NAMLEN, MAPEL, MAPND) |
| 16 |
C======================================================================= |
| 17 |
|
| 18 |
C --*** PLOTER *** (BLOT) Main routine for plotting |
| 19 |
C -- Modified by John Glick - 11/29/88 |
| 20 |
C -- Written by Amy Gilkey - revised 06/02/88 |
| 21 |
C -- |
| 22 |
C --PLOTER sets up the graphics and calls the appropriate plotting routine |
| 23 |
C --for the current subprogram. |
| 24 |
C -- |
| 25 |
C --Parameters: |
| 26 |
C -- A - IN - the dynamic memory base array |
| 27 |
C -- CURPRO - IN - the current program name |
| 28 |
C -- NEUTRL - IN - the type of neutral file to write. |
| 29 |
C -- NAMES - IN - the variable names |
| 30 |
C -- NPTIMS - IN - the number of selected time steps |
| 31 |
C -- IPTIMS - IN - the selected time steps |
| 32 |
C -- TIMES - IN - the database times |
| 33 |
C -- WHOTIM - IN - true iff whole (versus history) time step |
| 34 |
C -- NLNKE - IN - the number of nodes per element |
| 35 |
C -- ISEVOK - IN - the element block variable truth table; |
| 36 |
C -- variable i of block j exists iff ISEVOK(j,i) |
| 37 |
C -- NENUM - IN - the selected node/element numbers |
| 38 |
C -- XN, YN, ZN - IN - the nodal mesh coordinates |
| 39 |
C -- XE, YE, ZE - IN - the element centroid mesh coordinates |
| 40 |
C -- NAMECO - IN - the coordinate names |
| 41 |
C -- LENF - IN/OUT - the cumulative face counts by element block |
| 42 |
C -- NLNKF - IN - the number of nodes per face |
| 43 |
C -- KLINKF - IN/OUT - the dynamic memory index of the connectivity |
| 44 |
C -- for all faces |
| 45 |
C -- LENL - IN/OUT - the cumulative line counts by element block |
| 46 |
C -- KLNSET - IN/OUT - the dynamic memory index of the sorted line set |
| 47 |
C -- IE2ELB - IN - the element block for each element |
| 48 |
C -- IELBST - IN - the element block status: |
| 49 |
C -- -1 = OFF, 0 = ON, but not selected, 1 = selected |
| 50 |
C -- KNPSUR - IN/OUT - the index of NPSURF - |
| 51 |
C -- the node numbers of the surface nodes or mesh boundary nodes (2D) |
| 52 |
C -- ISSNPS - IN - the indices of the selected node sets |
| 53 |
C -- IDNPS - IN - the node set ID for each set |
| 54 |
C -- ISSESS - IN - the indices of the selected side sets |
| 55 |
C -- IDESS - IN - the side set ID for each set |
| 56 |
C -- LIDSP(0:*) - IN - the indices of the selected variables |
| 57 |
C -- whose values will be displayed on the plot legend. |
| 58 |
C -- LIDSP(0) = the number of variables in the list. |
| 59 |
C -- LIDSP(i) identifies the ith variable in the list. |
| 60 |
C -- If LIDSP(i) > 0, LIDSP(i) is the id of a history variable. |
| 61 |
C -- If LIDSP(i) < 0, -LIDSP(i) is the id of a global variable. |
| 62 |
C -- If LIDSP(i) = 0, TIME is to be displayed on the plot legend. |
| 63 |
C -- BLKCOL - IN/OUT - the user selected colors of the element blocks. |
| 64 |
C -- BLKCOL(0) = 1 if the user defined material |
| 65 |
C -- colors should be used in mesh plots. |
| 66 |
C -- = -1 if program selected colors should |
| 67 |
C -- be used. |
| 68 |
C -- BLKCOL(i) = the user selected color of element |
| 69 |
C -- block i: |
| 70 |
C -- -2 - no color selected by user. |
| 71 |
C -- -1 - black |
| 72 |
C -- 0 - white |
| 73 |
C -- 1 - red |
| 74 |
C -- 2 - green |
| 75 |
C -- 3 - yellow |
| 76 |
C -- 4 - blue |
| 77 |
C -- 5 - cyan |
| 78 |
C -- 6 - magenta |
| 79 |
C -- |
| 80 |
C --Common Variables: |
| 81 |
C -- Uses DBORD0 of /LAYOUT/ |
| 82 |
C -- Sets DVIEW0 of /LAYOUT/ |
| 83 |
|
| 84 |
PARAMETER (KLFT=1, KRGT=2, KBOT=3, KTOP=4, KNEA=5, KFAR=6) |
| 85 |
include 'params.blk' |
| 86 |
include 'layout.blk' |
| 87 |
include 'dbnums.blk' |
| 88 |
|
| 89 |
DIMENSION A(*) |
| 90 |
CHARACTER*(*) CURPRO |
| 91 |
CHARACTER*(NAMLEN) NAMES(*) |
| 92 |
INTEGER IPTIMS(*) |
| 93 |
REAL TIMES(*) |
| 94 |
LOGICAL WHOTIM(*) |
| 95 |
INTEGER NLNKE(*) |
| 96 |
LOGICAL ISEVOK(*) |
| 97 |
INTEGER NENUM(*) |
| 98 |
REAL XN(*), YN(*), ZN(*) |
| 99 |
REAL XE(*), YE(*), ZE(*) |
| 100 |
CHARACTER*(*) NAMECO(*) |
| 101 |
INTEGER LENF(*) |
| 102 |
INTEGER NLNKF(*) |
| 103 |
INTEGER LENL(*) |
| 104 |
INTEGER IE2ELB(*) |
| 105 |
INTEGER NEWELB |
| 106 |
INTEGER IELBST(*) |
| 107 |
INTEGER ISSNPS(*) |
| 108 |
INTEGER IDNPS(*) |
| 109 |
INTEGER ISSESS(*) |
| 110 |
INTEGER IDESS(*) |
| 111 |
INTEGER LIDSP(0:*) |
| 112 |
INTEGER BLKCOL(0:NELBLK) |
| 113 |
INTEGER IDELB(*) |
| 114 |
CHARACTER*(*) NAMELB(*) |
| 115 |
INTEGER MAPEL(*), MAPND(*) |
| 116 |
|
| 117 |
C --Set up graphics |
| 118 |
|
| 119 |
IF ((CURPRO .EQ. 'MESH') .OR. (CURPRO .EQ. 'DETOUR') |
| 120 |
& .OR. (CURPRO .EQ. 'PATHLINE')) THEN |
| 121 |
|
| 122 |
C --Set up graphics for mesh plot |
| 123 |
CALL PRESET (.FALSE., .TRUE., DBORD0, DVIEW0) |
| 124 |
|
| 125 |
ELSE IF ((CURPRO .EQ. 'TPLOT') .OR. (CURPRO .EQ. 'SPLOT')) THEN |
| 126 |
|
| 127 |
C --Set up graphics for line plot |
| 128 |
CALL PRESET (.TRUE., .TRUE., DBORD0, DVIEW0) |
| 129 |
|
| 130 |
ELSE |
| 131 |
CALL PRTERR ('PROGRAM', 'Undefined subprogram') |
| 132 |
GOTO 100 |
| 133 |
END IF |
| 134 |
|
| 135 |
C --Use the standard color table |
| 136 |
CALL GRCOLU ('STANDARD') |
| 137 |
C --Wipe out the mesh plot pick |
| 138 |
CALL INPICK ('NONE') |
| 139 |
|
| 140 |
C --Call plotting routine for current subprogram |
| 141 |
|
| 142 |
IF (CURPRO .EQ. 'MESH') THEN |
| 143 |
CALL STCLST('MESH') |
| 144 |
CALL MSMAIN (A, NAMECO, NAMES, |
| 145 |
& LENF, NLNKE, NLNKF, KLINKF, LENL, KLNSET, |
| 146 |
& NEWELB, IELBST, |
| 147 |
& KNPSUR, |
| 148 |
& ISSNPS, IDNPS, ISSESS, IDESS, NENUM, LIDSP, |
| 149 |
& BLKCOL, IDELB, NAMELB, MAPEL, MAPND) |
| 150 |
|
| 151 |
ELSE IF (CURPRO .EQ. 'DETOUR') THEN |
| 152 |
CALL STCLST('DETOUR') |
| 153 |
CALL DTMAIN (A, NAMECO, NAMES, NPTIMS, IPTIMS, TIMES, |
| 154 |
& LENF, NLNKE, NLNKF, KLINKF, LENL, KLNSET, |
| 155 |
& NEWELB, IELBST, |
| 156 |
& KNPSUR, ISEVOK, |
| 157 |
& ISSNPS, IDNPS, ISSESS, IDESS, LIDSP, BLKCOL, |
| 158 |
& IDELB, NAMELB, MAPEL, MAPND) |
| 159 |
|
| 160 |
ELSE IF (CURPRO .EQ. 'PATHLINE') THEN |
| 161 |
CALL STCLST('PATH') |
| 162 |
CALL LNMAIN (A, NAMECO, NAMES, NPTIMS, IPTIMS, TIMES, WHOTIM, |
| 163 |
& LENF, NLNKE, NLNKF, KLINKF, LENL, KLNSET, |
| 164 |
& NEWELB, IELBST, |
| 165 |
& KNPSUR, |
| 166 |
& ISSNPS, IDNPS, ISSESS, IDESS, LIDSP, BLKCOL, |
| 167 |
& IDELB, NAMELB, MAPEL, MAPND) |
| 168 |
|
| 169 |
ELSE IF (CURPRO .EQ. 'TPLOT') THEN |
| 170 |
CALL STCLST('TPLOT') |
| 171 |
CALL TPMAIN (A, NEUTRL, NAMES, |
| 172 |
& NPTIMS, IPTIMS, TIMES, WHOTIM, BLKCOL, |
| 173 |
& IDELB, MAPEL, MAPND) |
| 174 |
|
| 175 |
ELSE IF (CURPRO .EQ. 'SPLOT') THEN |
| 176 |
CALL STCLST('SPLOT') |
| 177 |
CALL SPMAIN (A, NEUTRL, NAMES, NPTIMS, IPTIMS, TIMES, |
| 178 |
& NENUM, XN, YN, ZN, XE, YE, ZE, IE2ELB, ISEVOK, |
| 179 |
& LIDSP, BLKCOL, IDELB, MAPEL, MAPND) |
| 180 |
END IF |
| 181 |
|
| 182 |
100 CONTINUE |
| 183 |
RETURN |
| 184 |
END |