Debian Codegraph @

packages/seacas/applications/explore/exp_prstep.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 C=======================================================================
7 SUBROUTINE PRSTEP (OPTION, NOUT, TIME, NCSTEP, NSTEPS)
8 C=======================================================================
9
10 C --*** PRSTEP *** (EXPLORE) Display current database time and step number
11 C --
12 C --PRSTEP displays the time and the step number of the current time step.
13 C --
14 C --Parameters:
15 C -- OPTION - IN - '*' to print all, else print options
16 C -- NOUT - IN - the output file, <=0 for standard
17 C -- TIME - IN - the current time step time
18 C -- NCSTEP - IN - the current time step number
19 C -- NSTEPS - IN - the number of time steps
20
21 CHARACTER*(*) OPTION
22
23 CHARACTER*32 STRA, STRB
24 CHARACTER*32 RSTR
25
26 INTEGER NPREC
27 INTEGER GETPRC
28
29 NPREC=GETPRC()
30
31 STRA = 'time step'
32 LSTRA = LENSTR (STRA)
33 CALL NUMSTR (1, NPREC, TIME, RSTR, LRSTR)
34 WRITE (STRB, 10000, IOSTAT=IDUM) NCSTEP, NSTEPS
35 10000 FORMAT (I12, ' of ', I12)
36 CALL SQZSTR (STRB, LSTRB)
37 IF (NOUT .GT. 0) THEN
38 WRITE (NOUT, *)
39 WRITE (NOUT, 10010)
40 & RSTR(:LRSTR), STRA(:LSTRA), STRB(:LSTRB)
41 ELSE
42 WRITE (*, 10010)
43 & RSTR(:LRSTR), STRA(:LSTRA), STRB(:LSTRB)
44 END IF
45
46 RETURN
47 10010 FORMAT (1X, 'Time = ', A, ' (', A, ' ', A, ')')
48 END