| 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 SQZLGV (NPTIMS, IPTIMS, WHOTIM, VALIN, NPTOUT, VALOUT) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** SQZLGV *** (TPLOT) Compress time-dependent values |
| 12 |
C -- Written by Amy Gilkey - revised 11/06/87 |
| 13 |
C -- |
| 14 |
C --SQZLGV compresses time-dependent curve values so that only the |
| 15 |
C --values for whole time steps are in the curve. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- NPTIMS - IN - the number of selected time steps |
| 19 |
C -- IPTIMS - IN - the selected time steps |
| 20 |
C -- WHOTIM - IN - true iff whole (versus history) time step |
| 21 |
C -- VALIN - IN - the input data |
| 22 |
C -- NPTOUT - OUT - the number of selected whole time steps |
| 23 |
C -- VALOUT - OUT - the output (compressed) data |
| 24 |
|
| 25 |
INTEGER IPTIMS(*) |
| 26 |
LOGICAL WHOTIM(*) |
| 27 |
REAL VALIN(*) |
| 28 |
REAL VALOUT(*) |
| 29 |
|
| 30 |
NPTOUT = 0 |
| 31 |
DO 100 I = 1, NPTIMS |
| 32 |
IF (WHOTIM(IPTIMS(I))) THEN |
| 33 |
NPTOUT = NPTOUT + 1 |
| 34 |
VALOUT(NPTOUT) = VALIN(I) |
| 35 |
END IF |
| 36 |
100 CONTINUE |
| 37 |
|
| 38 |
RETURN |
| 39 |
END |