1 c.....driver program for A Multi-Phase Transport model
2 SUBROUTINE AMPT(FRAME0,BMIN,BMAX)
4 double precision xmp, xmu, alpha, rscut2, cutof2
5 double precision smearp,smearh,dpcoal,drcoal,ecritl
6 cgsfs added following line to match C++ call
7 double precision BMIN, BMAX
13 cgsfs added to match specification in AMPTSET
17 COMMON/HMAIN1/EATT,JATT,NATT,NT,NP,N0,N01,N10,N11
18 COMMON /HPARNT/HIPR1(100), IHPR2(50), HINT1(100), IHNT2(50)
19 COMMON/LUDAT1A/MSTU(200),PARU(200),MSTJ(200),PARJ(200)
20 COMMON /ARPRNT/ ARPAR1(100), IAPAR2(50), ARINT1(100), IAINT2(50)
22 COMMON /AREVT/ IAEVT, IARUN, MISS
23 COMMON /smearz/smearp,smearh
25 common/anim/nevent,isoft,isflag,izpc
26 c parton coalescence radii in case of string melting:
27 common /coal/dpcoal,drcoal,ecritl
28 common/snn/efrm,npart1,npart2
29 c initialization value for parton cascade:
30 common /para2/ xmp, xmu, alpha, rscut2, cutof2
31 common /para7/ ioscar,nsmbbbar,nsmmeson
32 common /para8/ idpert,npertd,idxsec
34 c initialization value for hadron cascade:
36 common/input1/ MASSPR,MASSTA,ISEED,IAVOID,DT
37 COMMON /INPUT2/ ILAB, MANYB, NTMAX, ICOLL, INSYS, IPOT, MODE,
38 & IMOMEN, NFREQ, ICFLOW, ICRHO, ICOU, KPOTEN, KMUL
39 common/oscar1/iap,izp,iat,izt
40 common/oscar2/FRAME,amptvn
41 common/resdcy/NSAV,iksdcy
43 c common/phidcy/iphidcy
44 common/phidcy/iphidcy,pttrig,ntrig,maxmiss
45 common/embed/iembed,pxqembd,pyqembd,xembd,yembd
47 EXTERNAL HIDATA, PYDATA, LUDATA, ARDATA, PPBDAT, zpcbdt
53 cgsfs This line should not be here, but the value needs to be set for ARINI2
57 100 CALL HIJING(FRAME, BMIN, BMAX)
61 c evaluate Npart (from primary NN collisions) for both proj and targ:
63 c switch for final parton fragmentation:
64 IF (IHPR2(20) .EQ. 0) GOTO 2000
65 c In the unlikely case of no interaction (even after loop of 20 in HIJING),
66 c still repeat the event to get an interaction
67 c (this may have an additional "trigger" effect):
71 write(6,*) 'repeated event: natt=0,j,imiss=',j,imiss
74 write(6,*) 'missed event: natt=0,j=',j
78 c.....ART initialization and run
90 clin-5/2009 ctest off:
91 c call flowh0(NEVNT,2)
93 c call iniflw(NEVNT,2)