1
C--------------------------------------------
3
C Routine to dump histogram data to a file
5
subroutine hcurve(id,filename)
7
C Dumps current histogram number id to file 'filename' and
11
character*(*) filename
14
if (nhist .eq. 0) return
15
open (unit=69,name=filename,status='unknown')
17
if (id .eq. idnumber(i)) go to 10
25
xbinsize = (xmax-xmin)/nx
26
if (single dim(i)) then
31
npts=npts+npoints(k+2+m)
33
write (69,300) label(i)(1:labelleng(label(i)))
34
write (69,700) (xmin+(m-.5)*xbinsize,
35
$ data(k+2+m),sqrt(abs(error(k+2+m))),
36
$ npoints(k+2+m)/(npts*sum+1e-23),m=1,nx)
38
ny = int(data(k+3) + .1)
41
ybinsize = (ymax-ymin)/ny
42
write (69,300) label(i)(1:labelleng(label(i)))
45
fixed y = ymin + (n-.5)*ybinsize
46
write (69,500) (xmin+(m-.5)*xbinsize,fixed y,
54
300 format ('# Histogram ',a)
55
400 format (1x,2g15.6)
56
500 format (1x,3g15.6)
57
700 format (1x,4g15.6)
63
function labelleng(string)
67
if (string(i:i) .ne. ' ') then