source: trunk/examples/extended/electromagnetic/TestEm2/geant3/src/main.F @ 807

Last change on this file since 807 was 807, checked in by garnier, 16 years ago

update

File size: 1023 bytes
Line 
1#ifdef batch
2
3      PROGRAM main
4*
5*
6      PARAMETER (NGBANK=500000, NHBOOK=5000)
7      COMMON/GCBANK/Q(NGBANK)
8      COMMON/PAWC  /H(NHBOOK)
9*
10      CALL GZEBRA( NGBANK)
11      CALL HLIMIT(-NHBOOK)
12*
13* *** initialize HIGZ
14      CALL HPLINT(0)     
15*
16* *** GEANT initialisation
17      CALL UGINIT
18*
19* *** Start events processing
20      CALL GRUN
21*
22* *** End of RUN
23      CALL UGLAST
24*
25      STOP
26      END
27     
28#else
29     
30      PROGRAM main
31*
32*     GEANT main program. To link with the MOTIF user interface
33*     the routine GPAWPP(NWGEAN,NWPAW) should be called, whereas
34*     the routine GPAW(NWGEAN,NWPAW) gives access to the basic
35*     graphics version.
36*
37      PARAMETER (NWGEAN=3000000, NWPAW=1000000)
38      COMMON/GCBANK/GEANT(NWGEAN)
39      COMMON/PAWC  /PAW  (NWPAW)
40*
41*
42      CALL GPAW (NWGEAN,NWPAW)
43*
44      END
45*
46      SUBROUTINE qnext
47      END
48*
49      SUBROUTINE czopen
50      END
51*
52      SUBROUTINE cztcp
53      END
54*
55      SUBROUTINE czclos
56      END
57*
58      SUBROUTINE czputa
59      END
60     
61#endif     
Note: See TracBrowser for help on using the repository browser.