5 * Revision 1.1.1.1 1995/10/24 10:20:21 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.26 by S.Giani
14 C. ******************************************************************
16 C. * The aim of this subroutine is: *
18 C. * - To control the number of structures used *
19 C. * - To test if the maximum size of memory is achieved *
21 C. * - To increase the size of the CG-Bank if there *
22 C. * is not enough space for new CG structures. *
25 C. * ==>Called by : GDCGCL,GDCGHI,GDCGOB *
27 C. * Author : J. Salt ********** *
29 C. ******************************************************************
31 #include "geant321/gcbank.inc"
32 #include "geant321/gcunit.inc"
33 #include "geant321/gcgobj.inc"
34 #include "geant321/gchiln.inc"
38 * Control on the Maximum Number of CG Structures
40 IF(IST.GT.IQ(JCOUNT-1))THEN
47 * Control the Size of the IXCG
48 * Bank Extension. Garbage Collection
54 IF(NRES.GT.INCND)INCND=NRES
57 CALL MZPUSH(IXCG,JCG,0,INCND,' ')
62 10000 FORMAT(' Maximum Number of Structures exceeded')