| 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 SPLABN (IPVAR, TIME, NENUM, NAMES, |
| 9 |
& PLTITL, TXLAB, TYLAB, MAPEL, MAPND) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** SPLABN *** (SPLOT) Get neutral file plot labels |
| 13 |
C -- Written by Amy Gilkey - revised 03/10/86 |
| 14 |
C -- |
| 15 |
C --SPLABN makes up the plot titles and labels for the neutral file. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- IPVAR - IN - the /SPVARS/ index of the starting plot variable |
| 19 |
C -- TIME - IN - the plot time |
| 20 |
C -- NENUM - IN - the node/element numbers |
| 21 |
C -- NAMES - IN - the variable names |
| 22 |
C -- PLTITL - OUT - the plot title describing the curves to be |
| 23 |
C -- plotted (e.g. "TIME vs SIGXX at ELEMENT 30") |
| 24 |
C -- TXLAB, TYLAB - OUT - the X and Y axis labels, either the |
| 25 |
C -- user-input labels or the plot variable descriptions |
| 26 |
C -- |
| 27 |
C --Common Variables: |
| 28 |
C -- Uses NODVAR, NNENUM of /SELNE/ |
| 29 |
C -- Uses ISVID of /SPVARS/ |
| 30 |
C -- Uses XLAB, YLAB of /XYLAB/ |
| 31 |
|
| 32 |
include 'params.blk' |
| 33 |
include 'dbnums.blk' |
| 34 |
include 'selne.blk' |
| 35 |
include 'spvars.blk' |
| 36 |
include 'xylab.blk' |
| 37 |
|
| 38 |
INTEGER NENUM(NNENUM) |
| 39 |
CHARACTER*(*) NAMES(*) |
| 40 |
CHARACTER*(*) PLTITL |
| 41 |
CHARACTER*(*) TXLAB, TYLAB |
| 42 |
INTEGER MAPEL(*), MAPND(*) |
| 43 |
|
| 44 |
CHARACTER*32 STRNUM |
| 45 |
CHARACTER*32 STRTIM |
| 46 |
CHARACTER*(MXNAME) NAM |
| 47 |
|
| 48 |
C --Get the plot legend |
| 49 |
|
| 50 |
NAM = NAMES(ISVID(IPVAR)) |
| 51 |
|
| 52 |
if (nodvar) then |
| 53 |
WRITE (STRNUM, 10000, IOSTAT=IDUM) |
| 54 |
* MAPND(NENUM(1)), MAPND(NENUM(NNENUM)) |
| 55 |
else |
| 56 |
WRITE (STRNUM, 10000, IOSTAT=IDUM) |
| 57 |
* MAPEL(NENUM(1)), MAPEL(NENUM(NNENUM)) |
| 58 |
end if |
| 59 |
10000 FORMAT (I9, '..', I9) |
| 60 |
CALL PCKSTR (1, STRNUM) |
| 61 |
|
| 62 |
CALL NUMSTR1(4, TIME, STRTIM, LSTR) |
| 63 |
|
| 64 |
IF (NODVAR) THEN |
| 65 |
PLTITL = 'DISTANCE vs ' // NAM(:LENSTR(NAM)) |
| 66 |
& // ' NODES ' // STRNUM(:LENSTR(STRNUM)) |
| 67 |
& // ' at TIME ' // STRTIM(:LSTR) |
| 68 |
ELSE |
| 69 |
PLTITL = 'DISTANCE vs ' // NAM(:LENSTR(NAM)) |
| 70 |
& // ' ELEMENTS ' // STRNUM(:LENSTR(STRNUM)) |
| 71 |
& // ' at TIME ' // STRTIM(:LSTR) |
| 72 |
END IF |
| 73 |
|
| 74 |
C --Get the axis labels |
| 75 |
|
| 76 |
IF (XLAB .NE. ' ') THEN |
| 77 |
TXLAB = XLAB |
| 78 |
ELSE |
| 79 |
TXLAB = 'DISTANCE' |
| 80 |
END IF |
| 81 |
|
| 82 |
IF (YLAB .NE. ' ') THEN |
| 83 |
TYLAB = YLAB |
| 84 |
ELSE |
| 85 |
TYLAB = NAM |
| 86 |
END IF |
| 87 |
|
| 88 |
RETURN |
| 89 |
END |