| 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 |
C======================================================================= |
| 7 |
SUBROUTINE CHKCNT (ICHECK, LENCHK, NZERO, NMULT) |
| 8 |
C======================================================================= |
| 9 |
|
| 10 |
C --*** CHKCNT *** (EXPLORE) Check count of items |
| 11 |
C -- |
| 12 |
C --CHKCNT checks an array of counted items for counts of zero or counts |
| 13 |
C --greater than one. |
| 14 |
C -- |
| 15 |
C --Parameters: |
| 16 |
C -- ICHECK - IN - the counts |
| 17 |
C -- LENCHK - IN - the length of ICHECK |
| 18 |
C -- NZERO - OUT - the number of zero counts |
| 19 |
C -- NMULT - OUT - the number of counts greater than one |
| 20 |
|
| 21 |
INTEGER ICHECK(*) |
| 22 |
|
| 23 |
NZERO = 0 |
| 24 |
NMULT = 0 |
| 25 |
DO 100 I = 1, LENCHK |
| 26 |
IF (ICHECK(I) .LE. 0) NZERO = NZERO + 1 |
| 27 |
IF (ICHECK(I) .GT. 1) NMULT = NMULT + 1 |
| 28 |
100 CONTINUE |
| 29 |
|
| 30 |
RETURN |
| 31 |
END |