This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gbase / getnum.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:20:09  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.19  by  S.Giani
11 *-- Author :
12       SUBROUTINE GETNUM(LIST,N)
13 C.
14 C.    ******************************************************************
15 C.    *                                                                *
16 C.    *       Routine to count the number of non blank elements        *
17 C.    *      in the array LIST before the first blank one              *
18 C.    *                                                                *
19 C.    *    ==>Called by : GFFGO                                        *
20 C.    *    ==>Author    R.Brun  *********                              *
21 C.    *                                                                *
22 C.    ******************************************************************
23 C.
24       DIMENSION LIST(*)
25       SAVE IFIRST,IDFLT
26       DATA IFIRST/0/
27 C.    ------------------------------------------------------------------
28 C.
29       IF(IFIRST.EQ.0)THEN
30          IFIRST=1
31          CALL UCTOH('    ',IDFLT,4,4)
32       ENDIF
33 C
34       N = 0
35       DO 10 I=1,20
36          IF(LIST(I).EQ.IDFLT) GO TO 99
37          N=N+1
38   10  CONTINUE
39 C
40   99  RETURN
41       END