Debian Codegraph @

packages/seacas/applications/blot/prhist.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 PRHIST (OPTION, NOUT, NVARHI, LISHV, NAMEHV, VARHI)
9 C=======================================================================
10
11 C --*** PRHIST *** (BLOT) Display current database history variables
12 C -- Written by Amy Gilkey - revised 11/05/87
13 C --
14 C --PRHIST displays the history data for a time step.
15 C --
16 C --Parameters:
17 C -- OPTION - IN - '*' to print all, else print options
18 C -- NOUT - IN - the output file, <=0 for standard
19 C -- NVARHI - IN - the number of history variables
20 C -- LISHV - IN - the indices of the selected history variables
21 C -- NAMEHV - IN - the names of the history variables
22 C -- VARHI - IN - the history variables for the time step
23
24 CHARACTER*(*) OPTION
25 INTEGER LISHV(0:*)
26 CHARACTER*(*) NAMEHV(*)
27 REAL VARHI(*)
28
29 IF (NOUT .GT. 0) WRITE (NOUT, 10000)
30
31 IF (NOUT .GT. 0) THEN
32 WRITE (NOUT, 10010) (NAMEHV(LISHV(I)), I=1,LISHV(0))
33 ELSE
34 WRITE (*, 10010) (NAMEHV(LISHV(I)), I=1,LISHV(0))
35 END IF
36
37 IF (NOUT .GT. 0) THEN
38 WRITE (NOUT, 10020, IOSTAT=IDUM)
39 & (VARHI(LISHV(I)), I=1,LISHV(0))
40 ELSE
41 WRITE (*, 10020, IOSTAT=IDUM)
42 & (VARHI(LISHV(I)), I=1,LISHV(0))
43 END IF
44
45 RETURN
46
47 10000 FORMAT (/, 1X, 'HISTORY TIME STEP VARIABLES')
48 10010 FORMAT (/, 1X, 9X, 5 (3X, A, 3X), :, /,
49 & (1X, 9X, 5 (3X, A, 3X)))
50 10020 FORMAT (1X, 'History', 2X, 5 (1X, E13.6), :, /,
51 & (1X, 9X, 5 (1X, E13.6)))
52 END