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.
32 lines
1.0 KiB
32 lines
1.0 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=======================================================================
|
||
|
INTEGER FUNCTION NWHSEL (NPTIMS, IPTIMS, WHOTIM)
|
||
|
C=======================================================================
|
||
|
|
||
|
C --*** NWHSEL *** (TIMSEL) Return number of whole times selected
|
||
|
C -- Written by Amy Gilkey - revised 11/11/87
|
||
|
C --
|
||
|
C --NWHSEL returns the number of whole times selected.
|
||
|
C --
|
||
|
C --Parameters:
|
||
|
C -- NPTIMS - IN - the number of selected times
|
||
|
C -- IPTIMS - IN - the selected time steps
|
||
|
C -- WHOTIM - IN - true iff TIMES(i) is whole (versus history) time step
|
||
|
|
||
|
INTEGER NPTIMS
|
||
|
INTEGER IPTIMS(*)
|
||
|
LOGICAL WHOTIM(*)
|
||
|
|
||
|
NWHSEL = 0
|
||
|
DO 100 I = 1, NPTIMS
|
||
|
IF (WHOTIM(IPTIMS(I))) NWHSEL = NWHSEL + 1
|
||
|
100 CONTINUE
|
||
|
|
||
|
RETURN
|
||
|
END
|