| 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 |
INTEGER FUNCTION NWHSEL (NPTIMS, IPTIMS, WHOTIM) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** NWHSEL *** (TIMSEL) Return number of whole times selected |
| 12 |
C -- Written by Amy Gilkey - revised 11/11/87 |
| 13 |
C -- |
| 14 |
C --NWHSEL returns the number of whole times selected. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NPTIMS - IN - the number of selected times |
| 18 |
C -- IPTIMS - IN - the selected time steps |
| 19 |
C -- WHOTIM - IN - true iff TIMES(i) is whole (versus history) time step |
| 20 |
|
| 21 |
INTEGER NPTIMS |
| 22 |
INTEGER IPTIMS(*) |
| 23 |
LOGICAL WHOTIM(*) |
| 24 |
|
| 25 |
NWHSEL = 0 |
| 26 |
DO 100 I = 1, NPTIMS |
| 27 |
IF (WHOTIM(IPTIMS(I))) NWHSEL = NWHSEL + 1 |
| 28 |
100 CONTINUE |
| 29 |
|
| 30 |
RETURN |
| 31 |
END |