Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.7 KiB

2 years ago
C Copyright(C) 1999-2020 National Technology & Engineering Solutions
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C See packages/seacas/LICENSE for details
C=======================================================================
SUBROUTINE PRSTEP (OPTION, NOUT, TIME, WHOTIM, NCSTEP, NSTEPS)
C=======================================================================
C --*** PRSTEP *** (BLOT) Display current database time and step number
C -- Written by Amy Gilkey - revised 01/18/88
C --
C --PRSTEP displays the time and the step number of the current time step.
C --
C --Parameters:
C -- OPTION - IN - '*' to print all, else print options
C -- NOUT - IN - the output file, <=0 for standard
C -- TIME - IN - the current time step time
C -- WHOTIM - IN - true iff whole (versus history) time step
C -- NCSTEP - IN - the current time step number
C -- NSTEPS - IN - the number of time steps
CHARACTER*(*) OPTION
LOGICAL WHOTIM
CHARACTER*20 STRA, STRB
CHARACTER*20 RSTR
IF (.NOT. WHOTIM) THEN
STRA = 'history time step'
ELSE
STRA = 'whole time step'
END IF
LSTRA = LENSTR (STRA)
CALL NUMSTR1(4, TIME, RSTR, LRSTR)
WRITE (STRB, 10000, IOSTAT=IDUM) NCSTEP, NSTEPS
10000 FORMAT (I5, ' of ', I5)
CALL SQZSTR (STRB, LSTRB)
IF (NOUT .GT. 0) THEN
WRITE (NOUT, *)
WRITE (NOUT, 10010)
& RSTR(:LRSTR), STRA(:LSTRA), STRB(:LSTRB)
ELSE
WRITE (*, 10010)
& RSTR(:LRSTR), STRA(:LSTRA), STRB(:LSTRB)
END IF
RETURN
10010 FORMAT (1X, 'Time = ', A, ' (', A, ' ', A, ')')
END