Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyckbd.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyckbd.f
1 
2 C*********************************************************************
3 
4 C...PYCKBD
5 C...Check that BLOCK DATA PYDATA has been loaded.
6 C...Should not be required, except that some compilers/linkers
7 C...are pretty buggy in this respect.
8 
9  SUBROUTINE pyckbd
10 
11 C...Double precision and integer declarations.
12  IMPLICIT DOUBLE PRECISION(a-h, o-z)
13  IMPLICIT INTEGER(i-n)
14  INTEGER pyk,pychge,pycomp
15 C...Commonblocks.
16  common/pyjets/n,npad,k(4000,5),p(4000,5),v(4000,5)
17  common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
18  common/pydat2/kchg(500,4),pmas(500,4),parf(2000),vckm(4,4)
19  common/pydat3/mdcy(500,3),mdme(8000,2),brat(8000),kfdp(8000,5)
20  common/pysubs/msel,mselpd,msub(500),kfin(2,-40:40),ckin(200)
21  common/pypars/mstp(200),parp(200),msti(200),pari(200)
22  SAVE /pyjets/,/pydat1/,/pydat2/,/pydat3/,/pysubs/,/pypars/
23 
24 C...Check a few variables to see they have been sensibly initialized.
25  IF(mstu(4).LT.10.OR.mstu(4).GT.900000.OR.pmas(2,1).LT.0.001d0
26  &.OR.pmas(2,1).GT.1d0.OR.ckin(5).LT.0.01d0.OR.mstp(1).LT.1.OR.
27  &mstp(1).GT.5) THEN
28 C...If not, abort the run right away.
29  WRITE(*,*) 'Fatal error: BLOCK DATA PYDATA has not been loaded!'
30  WRITE(*,*) 'The program execution is stopped now!'
31  CALL pystop(8)
32  ENDIF
33 
34  RETURN
35  END