5 * Revision 1.1.1.1 1995/10/24 10:20:23 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.26 by S.Giani
12 SUBROUTINE GDNSON(NAME,NSON,NDIV)
14 C. ******************************************************************
16 C. * Return in NSON the number of sons of object NAME *
17 C. * and in NDIV its number of divisions, always positive *
18 C. * (NDIV=0 means no division) *
20 C. * ==>Called by : GDPRTR, GDSPEC, GDTR1 *
21 C. * Author : P.Zanarini ********* *
23 C. ******************************************************************
25 #include "geant321/gcbank.inc"
26 #include "geant321/gcnum.inc"
29 C. ------------------------------------------------------------------
33 CALL GLOOK(NAME,IQ(JVOLUM+1),NVOLUM,IVO)
34 IF (IVO.LE.0) GO TO 999
37 IF (NIN.EQ.0) GO TO 999
38 IF (NIN.GT.0) GO TO 10