]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gdraw/gdcgpr.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdcgpr.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:20:21 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.26 by S.Giani
11*-- Author :
12*
13 SUBROUTINE GDCGPR
14C. ******************************************************************
15C. * *
16C. * The aim of this subroutine is: *
17C. * *
18C. * - To control the number of structures used *
19C. * - To test if the maximum size of memory is achieved *
20C. * *
21C. * - To increase the size of the CG-Bank if there *
22C. * is not enough space for new CG structures. *
23C. * *
24C. * *
25C. * ==>Called by : GDCGCL,GDCGHI,GDCGOB *
26C. * *
27C. * Author : J. Salt ********** *
28C. * *
29C. ******************************************************************
30C.
31#include "geant321/gcbank.inc"
32#include "geant321/gcunit.inc"
33#include "geant321/gcgobj.inc"
34#include "geant321/gchiln.inc"
35*
36 INCND=2500
37*
38* Control on the Maximum Number of CG Structures
39*
40 IF(IST.GT.IQ(JCOUNT-1))THEN
41 WRITE(CHMAIL,10000)
42 CALL GMAIL(0,0)
43 KCGST=-1
44 RETURN
45 ENDIF
46*
47* Control the Size of the IXCG
48* Bank Extension. Garbage Collection
49*
50 NSUM=NFILT+NTNEX
51 NWFIL=IQ(JCG-1)
52 IF(NSUM.GT.NWFIL)THEN
53 NRES=NSUM-IQ(JCG-1)
54 IF(NRES.GT.INCND)INCND=NRES
55**
56 IXCG=IXSTOR+1
57 CALL MZPUSH(IXCG,JCG,0,INCND,' ')
58 ENDIF
59 IXCG=IXSTOR+1
60 CALL MZGARB(IXCG,0)
61*
6210000 FORMAT(' Maximum Number of Structures exceeded')
63*
64 END
65