3 Implicit Double Precision (a-h,o-
z)
6 COMMON /pepadm/cpdfnam(2,imxpdf),ipdfnam(2,imxpdf),
7 & iplst(10),cunpol,cpol
8 CHARACTER*256 cpdfnam,cunpol,cpol
21 Character flnm(isetmax)*12, tablefile*40
22 Data (flnm(i), i=1,isetmax)
23 > /
'cteq4m.tbl',
'cteq4d.tbl',
'cteq4l.tbl'
24 > ,
'cteq4a1.tbl',
'cteq4a2.tbl',
'cteq4m.tbl',
'cteq4a4.tbl'
25 > ,
'cteq4a5.tbl',
'cteq4hj.tbl',
'cteq4lq.tbl'
26 > ,
'cteq4hq.tbl',
'cteq4hq1.tbl',
'cteq4f3.tbl',
'cteq4f4.tbl' /
27 Data tablefile /
'test.tbl' /
28 Data isetold, isetmin, isettest / -987, 1, 911 /
33 If(iset.ne.isetold)
then
35 If (iset .eq. isettest)
then
36 print* ,
'Opening ', tablefile
37 Open(iu, file=tablefile,
status=
'OLD', err=101)
38 ElseIf (iset.lt.isetmin .or. iset.gt.isetmax)
Then
39 print *,
'Invalid Iset number in SetCtq4 :', iset
44 Open(iplst(2), file=cunpol,
status=
'OLD', err=100)
53 100
print *,
' Data file ', tablefile,
' cannot be opened '
56 101
print*, tablefile,
' cannot be opened '
57 print*,
'Please input the .tbl file:'
58 Read (*,
'(A)') tablefile