8 SUBROUTINE pydump(MDUMP,LFN,NHI,IHI)
11 IMPLICIT DOUBLE PRECISION(a-
h, o-
z)
14 common/
pybins/ihist(4),indx(1000),
bin(20000)
17 dimension ihi(*),iss(100),val(5)
18 CHARACTER title*60,format*13
44 & char(mod(ieq,256**2)/256)//char(mod(ieq,256))
47 WRITE(lfn,5200)
nx,
bin(is+2),
bin(is+3)
48 WRITE(lfn,5300) nint(
bin(is+5)),
bin(is+6),
bin(is+7),
62 WRITE(lfn,5400) (val(ixv),ixv=1,5)
67 CALL
pyerrm(8,
'(PYDUMP:) unknown histogram number')
72 ELSEIF(mdump.EQ.2)
THEN
76 READ(lfn,5200)
nx,xl,xu
81 READ(lfn,5300) nentry,
bin(is+6),
bin(is+7),
bin(is+8)
82 bin(is+5)=dble(nentry)
86 READ(lfn,5400) (val(ixv),ixv=1,5)
89 IF(ix.LE.
nx)
bin(is+8+ix)=val(ixv)
99 ELSEIF(mdump.EQ.3)
THEN
115 IF(is.NE.0.AND.nss.LT.100)
THEN
118 ELSEIF(nss.GE.100)
THEN
119 CALL
pyerrm(8,
'(PYDUMP:) too many histograms requested')
120 ELSEIF(nhi.GT.0)
THEN
121 CALL
pyerrm(8,
'(PYDUMP:) unknown histogram number')
126 nx=nint(
bin(iss(1)+1))
128 IF(nint(
bin(iss(iw)+1)).NE.
nx)
THEN
129 CALL
pyerrm(8,
'(PYDUMP:) different number of bins')
133 format=
'(1P,000E12.4)'
134 WRITE(
FORMAT(5:7),
'(I3)') nss+1
138 x=
bin(iss(1)+2)+(ix-0.5d0)*
bin(iss(1)+4)
139 WRITE(lfn,format)
x, (
bin(iss(iw)+8+ix),iw=1,nss)
145 5100
FORMAT(
i5,5
x,a60)
146 5200
FORMAT(
i5,1
p,2d12.4)
147 5300
FORMAT(i12,1
p,3d12.4)
148 5400
FORMAT(1
p,5d12.4)