| 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 TPLABN (IPVAR, TIMLIM, NAMES, PLTITL, TXLAB, TYLAB, |
| 9 |
* MAPEL, MAPND) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** TPLABN *** (TPLOT) Get neutral file plot labels |
| 13 |
C -- Written by Amy Gilkey - revised 03/23/87 |
| 14 |
C -- |
| 15 |
C --TPLABN makes up the plot titles and labels for the neutral file. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- IPVAR - IN - the /TPVARS/ index of the starting plot variable |
| 19 |
C -- TIMLIM - IN - the starting and ending times for a |
| 20 |
C -- variable-versus-variable curve |
| 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" or |
| 24 |
C -- "LOAD vs SIGXX at ELEMENT 30 for times 0.000 to 15.000") |
| 25 |
C -- TXLAB, TYLAB - OUT - the X and Y axis labels, either the |
| 26 |
C -- user-input labels or the plot variable descriptions |
| 27 |
C -- |
| 28 |
C --Common Variables: |
| 29 |
C -- Uses TIMPLT, ITVID, ITVNE of /TPVARS/ |
| 30 |
C -- Uses XLAB, YLAB of /XYLAB/ |
| 31 |
|
| 32 |
include 'params.blk' |
| 33 |
include 'tpvars.blk' |
| 34 |
include 'xylab.blk' |
| 35 |
|
| 36 |
REAL TIMLIM(2) |
| 37 |
CHARACTER*(*) NAMES(*) |
| 38 |
CHARACTER*(*) PLTITL |
| 39 |
CHARACTER*(*) TXLAB, TYLAB |
| 40 |
INTEGER MAPEL(*), MAPND(*) |
| 41 |
|
| 42 |
CHARACTER*(1024) PV1, PV2 |
| 43 |
CHARACTER*20 RSTR(2) |
| 44 |
|
| 45 |
C --Get the plot legend |
| 46 |
|
| 47 |
N = IPVAR |
| 48 |
|
| 49 |
IF (TIMPLT) THEN |
| 50 |
PV1 = 'TIME' |
| 51 |
CALL TPLABV (-1, ITVID(N), NAMES(ITVID(N)), ITVNE(N), PV2, |
| 52 |
* MAPEL, MAPND) |
| 53 |
PLTITL = PV1(:LENSTR(PV1)) // ' vs ' // PV2(:LENSTR(PV2)) |
| 54 |
write (*,*) pltitl(:lenstr(pltitl)) |
| 55 |
ELSE |
| 56 |
CALL TPLABV (-1, ITVID(N), NAMES(ITVID(N)), ITVNE(N), PV1, |
| 57 |
* MAPEL, MAPND) |
| 58 |
N = N + 1 |
| 59 |
CALL TPLABV (-1, ITVID(N), NAMES(ITVID(N)), ITVNE(N), PV2, |
| 60 |
* MAPEL, MAPND) |
| 61 |
CALL NUMSTR (2, 4, TIMLIM, RSTR, LSTR) |
| 62 |
PLTITL = PV1(:LENSTR(PV1)) // ' vs ' // PV2(:LENSTR(PV2)) |
| 63 |
& // ' for times ' // RSTR(1)(:LENSTR(RSTR(1))) |
| 64 |
& // ' to ' // RSTR(2)(:LSTR) |
| 65 |
END IF |
| 66 |
|
| 67 |
C --Get the axis labels |
| 68 |
|
| 69 |
IF (XLAB .NE. ' ') THEN |
| 70 |
TXLAB = XLAB |
| 71 |
ELSE |
| 72 |
TXLAB = PV1 |
| 73 |
END IF |
| 74 |
|
| 75 |
IF (YLAB .NE. ' ') THEN |
| 76 |
TYLAB = YLAB |
| 77 |
ELSE |
| 78 |
TYLAB = PV2 |
| 79 |
END IF |
| 80 |
|
| 81 |
RETURN |
| 82 |
END |