17 integer binorascii, reduced, nfraca
24 write(0,*)
" ProcLat: ./procLat$ARCH",
26 write(0,*)
" bin=1-->input is ascii file" 27 write(0,*)
" bin=2--> binary file" 29 *
" filename: path to the input -r.hist file(<256 chars)" 32 call getarg(1, buf, status)
33 read(buf,*) binorascii
34 if(binorascii .ne. 1 .and. binorascii.ne. 2)
then 35 write(0,*)
' error input to binOrascii=',binorascii
39 if(binorascii .eq. 1)
then 50 #include "../ZprivateSub.h" 51 #include "../../../Hist/Z90histc.h" 52 #include "../../../Hist/Z90histo.h" 53 #include "../../../Hist/Z90hist1.h" 64 character*256 filename
68 integer nbinhisto, status
69 integer kwhistReadAscii
75 call getarg(2, filename, status)
79 open(fnot, file=filename,
80 * iostat=status, access=
'sequential',
81 * form=
'unformatted', action=
'read')
82 if(status .ne. 0 )
then 83 write(0,*)
' cannot open file =' 95 read( fnot, end=100 ) histid0
96 if( histid0 .ne.
'#hist1' )
then 97 write(0,*)
' histogram is not 1-D: ',histid0
104 call proclat(h10, ifai, code, i)
113 write(0,*)
' unexpected EOF ' 118 call getarg(2, filename, status)
122 open(fnot, file=filename,
123 * iostat=status, access=
'sequential',
124 * form=
'formatted', action=
'read')
125 if(status .ne. 0 )
then 126 write(0,*)
' cannot open file =' 138 nbinhisto=kwhistreadascii(h10, fnot)
139 if(nbinhisto .le. 0 )
then 140 write(0,*)
' ascii read failed' 149 call proclat(h10, ifai, code, i)
void kwhistd(struct histogram1 *h)
subroutine proclat(h, idxf, code, layer)
void kwhistr(struct histogram1 *h, FILE *bfnor, int icon)
void kwhists(struct histogram1 *h, float inorm)