| 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 WRAPUP (PROG) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** WRAPUP *** (ETCLIB) Wrapup program |
| 12 |
C -- Written by Amy Gilkey - revised 04/23/86 |
| 13 |
C -- |
| 14 |
C --WRAPUP should be called at the end of any program. It performs |
| 15 |
C --finishing details common to all programs. Specifically, it |
| 16 |
C -- Gets and displays the CPU time used |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- PROG - IN - the program name |
| 20 |
|
| 21 |
CHARACTER*(*) PROG |
| 22 |
|
| 23 |
CHARACTER*8 STR8 |
| 24 |
|
| 25 |
C --Get and display the CPU time used |
| 26 |
|
| 27 |
CALL EXCPUS (CPUSEC) |
| 28 |
|
| 29 |
WRITE (STR8, '(F8.2)') CPUSEC |
| 30 |
CALL SQZSTR (STR8, LSTR) |
| 31 |
WRITE (*, 10000) PROG(:LENSTR(PROG)), STR8(:LSTR) |
| 32 |
10000 FORMAT (/, 1X, A, ' used ', A, ' seconds of CPU time') |
| 33 |
|
| 34 |
RETURN |
| 35 |
END |