IAP GITLAB

Commit 8b56ca0b authored by Colin Baus's avatar Colin Baus

added option to enable phojet

git-svn-id: https://devel-ik.fzk.de/svn/mc/crmc/trunk@3020 c7a5e08c-de06-0410-9364-b41cf42a0b17
parent 9d847f1c
......@@ -10,6 +10,7 @@ OPTION (__GHEISHA__ "Build with model" OFF)
OPTION (__PYTHIA__ "Build with model" OFF)
OPTION (__HIJING__ "Build with model" OFF)
OPTION (__SIBYLL__ "Build with model" ON)
OPTION (__PHOJET__ "Build with model" OFF)
OPTION (__QGSJETII__ "Build with model" ON)
# TODO want to disable epos, too
# TODO better support for model versions
......@@ -95,6 +96,12 @@ SET (EXTRA_MODELS ${EXTRA_MODELS} Sibyll)
SET (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -D __SIBYLL__")
ENDIF (__SIBYLL__)
IF (__PHOJET__)
ADD_SUBDIRECTORY ("${PROJECT_SOURCE_DIR}/src/phojet")
SET (EXTRA_MODELS ${EXTRA_MODELS} Phojet)
SET (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -D __PHOJET__")
ENDIF (__PHOJET__)
IF (__QGSJETII__)
ADD_SUBDIRECTORY ("${PROJECT_SOURCE_DIR}/src/qgsjetII")
SET (EXTRA_MODELS ${EXTRA_MODELS} QgsjetII)
......
......@@ -84,6 +84,7 @@ c Here the cross section sigineaa is defined
*
***************************************************************
implicit none
include "epos.inc"
c Output quantities
integer noutpart
double precision impactpar
......@@ -91,32 +92,6 @@ c Output quantities
double precision outpx(*), outpy(*), outpz(*)
double precision oute(*), outm(*)
c EPOS common with cross section
real sigtot,sigcut,sigela,sloela,sigsd,sigine,sigdif
*,sigineaa,sigtotaa,sigelaaa,sigcutaa,sigdd
common/hadr5/sigtot,sigcut,sigela,sloela,sigsd,sigine,sigdif
&,sigineaa,sigtotaa,sigelaaa,sigcutaa,sigdd
c HEP common as defined in epos.inc
integer nmxhep
parameter (nmxhep=9990) !max nr of particles in hep ptl list
double precision phep(5,nmxhep),vhep(4,nmxhep)
integer jdahep(2,nmxhep),jmohep(2,nmxhep)
integer idhep(nmxhep),isthep(nmxhep),nevhep,nhep
common/hepevt/nevhep,nhep,isthep,idhep,jmohep,jdahep,phep,vhep
integer iprmpt,ish,ishsub,irandm,irewch,iecho,modsho,idensi
common/prnt1/iprmpt,ish,ishsub,irandm,irewch,iecho,modsho,idensi
real phievt,bimevt,pmxevt,egyevt
*,xbjevt,qsqevt,zppevt,zptevt
integer nevt,kolevt,koievt,npjevt
*,ntgevt,npnevt,nppevt,ntnevt,ntpevt,jpnevt,jppevt,jtnevt,jtpevt
*,nglevt,minfra,maxfra
common/cevt/phievt,nevt,bimevt,kolevt,koievt,pmxevt,egyevt,npjevt
*,ntgevt,npnevt,nppevt,ntnevt,ntpevt,jpnevt,jppevt,jtnevt,jtpevt
*,xbjevt,qsqevt,nglevt,zppevt,zptevt,minfra,maxfra
double precision boostvec1,boostvec2,boostvec3,boostvec4,boostvec5
double precision ycm2det
common/boostvars/ycm2det !is this common block needed?
......
INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}/src/phojet")
FILE(GLOB files *.f)
add_library(Phojet SHARED ${files})
INSTALL (TARGETS Phojet
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment