source: trunk/MagicSoft/Simulation/Corsika/Mmcs/tstini.f@ 6724

Last change on this file since 6724 was 286, checked in by harald, 25 years ago
This is the start point for further developments of the Magic Monte Carlo Simulation written by Jose Carlos Gonzales. Now it is under control of one CVS repository for the whole collaboration. Everyone should use this CVS repository for further developments.
File size: 3.2 KB
Line 
1 SUBROUTINE TSTINI
2
3C-----------------------------------------------------------------------
4C T(O INTERMEDIATE) ST(ACK) INI(TIALIZATION)
5C
6C INITIALIZE THE INTERMEDIATE STACK FOR A SINGLE REACTION
7C THIS SUBROUTINE IS CALLED FROM AAMAIN, BOX3, AND PIGEN
8C-----------------------------------------------------------------------
9
10 IMPLICIT NONE
11*KEEP,PAM.
12 COMMON /PAM/ PAMA,SIGNUM
13 DOUBLE PRECISION PAMA(6000),SIGNUM(6000)
14*KEEP,PARPAR.
15 COMMON /PARPAR/ CURPAR,SECPAR,PRMPAR,OUTPAR,C,
16 * E00,E00PN,PTOT0,PTOT0N,THICKH,ITYPE,LEVL
17 DOUBLE PRECISION CURPAR(14),SECPAR(14),PRMPAR(14),OUTPAR(14),
18 * C(50),E00,E00PN,PTOT0,PTOT0N,THICKH
19 INTEGER ITYPE,LEVL
20*KEEP,PARPAE.
21 DOUBLE PRECISION GAMMA,COSTHE,PHI,H,T,X,Y,CHI,BETA,GCM,ECM
22 EQUIVALENCE (CURPAR(2),GAMMA), (CURPAR(3),COSTHE),
23 * (CURPAR(4), PHI ), (CURPAR(5), H ),
24 * (CURPAR(6), T ), (CURPAR(7), X ),
25 * (CURPAR(8), Y ), (CURPAR(9), CHI ),
26 * (CURPAR(10),BETA), (CURPAR(11),GCM ),
27 * (CURPAR(12),ECM )
28*KEEP,REJECT.
29 COMMON /REJECT/ AVNREJ,
30 * ALTMIN,ANEXP,THICKA,THICKD,CUTLN,EONCUT,
31 * FNPRIM
32 DOUBLE PRECISION AVNREJ(10)
33 REAL ALTMIN(10),ANEXP(10),THICKA(10),THICKD(10),
34 * CUTLN,EONCUT
35 LOGICAL FNPRIM
36*KEEP,RUNPAR.
37 COMMON /RUNPAR/ FIXHEI,THICK0,HILOECM,HILOELB,
38 * STEPFC,NRRUN,NSHOW,PATAPE,MONIIN,
39 * MONIOU,MDEBUG,NUCNUC,
40 * CETAPE,
41 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
42 * N1STTR,MDBASE,
43 * DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
44 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
45 * ,GHEISH,GHESIG
46 COMMON /RUNPAC/ DSN,HOST,USER
47 DOUBLE PRECISION FIXHEI,THICK0,HILOECM,HILOELB
48 REAL STEPFC
49 INTEGER NRRUN,NSHOW,PATAPE,MONIIN,MONIOU,MDEBUG,NUCNUC,
50 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
51 * N1STTR,MDBASE
52 INTEGER CETAPE
53 CHARACTER*79 DSN
54 CHARACTER*20 HOST,USER
55
56 LOGICAL DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
57 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
58 * ,GHEISH,GHESIG
59*KEEP,STACKF.
60 COMMON /STACKF/ STACK,STACKP,EXST,NSHIFT,NOUREC,ICOUNT,NTO,NFROM
61 INTEGER MAXSTK
62 PARAMETER (MAXSTK = 12*340*2)
63 DOUBLE PRECISION STACK(MAXSTK)
64 INTEGER STACKP,EXST,NSHIFT,NOUREC,ICOUNT,NTO,NFROM
65*KEEP,THNVAR.
66 COMMON /THNVAR/ STACKINT,INT_ICOUNT,THINNING
67 INTEGER MAXICOUNT
68 PARAMETER (MAXICOUNT=20000)
69 DOUBLE PRECISION STACKINT(MAXICOUNT,13)
70 INTEGER INT_ICOUNT
71 LOGICAL THINNING
72*KEND.
73
74 DOUBLE PRECISION EEPP
75 INTEGER I,J
76C-----------------------------------------------------------------------
77
78 IF ( DEBUG ) WRITE(MDEBUG,1)
79 1 FORMAT(' TSTINI: RESET INTERNAL REACTION STACK')
80
81 INT_ICOUNT = 0
82
83 THINNING = .FALSE.
84
85 RETURN
86 END
Note: See TracBrowser for help on using the repository browser.