COSMOS v7.655  COSMOSv7655
(AirShowerMC)
reducebinSize.f File Reference

Go to the source code of this file.

Functions/Subroutines

program __reducebinsize.f__
 
subroutine binreadhead
 

Function/Subroutine Documentation

◆ __reducebinsize.f__()

program __reducebinsize.f__ ( )

Definition at line 23 of file reducebinSize.f.

References binreadhead(), charge, code, copenfw2(), i, j, kgetenv2(), klena(), leng, nfai, nrbin, parameter(), rndc(), subcode, t, and true.

23  type(buffer):: abuf
Here is the call graph for this function:

◆ binreadhead()

subroutine binreadhead ( )

Definition at line 277 of file reducebinSize.f.

Referenced by __reducebinsize.f__().

277 !
278 #include "../FleshHist/Zprivate1.h"
279 #include "../FleshHist/Zprivate3.h"
280  real*8 et, wx, wy, wz
281  integer eventno
282  integer*2 code
283  integer i, icon
284 
285  type(buffer):: abuf
286  save
287 
288  read(fnodat)
289  * eventno, code, et, wx, wy, wz
290  write(*,'("i ", i3, i4, g13.4,3f11.7)')
291  * eventno, code, et, wx, wy, wz
292 
293  bufc = 0
294  return
295 
296 ! ******************
297  entry binread1(abuf, icon)
298 ! ***************
299  if(bufc .eq. 0) then
300  read(fnodat,end=100, err=500) bufc, (buf(i), i=1, bufc)
301 ! ****************************
302 ! bufc usage was wrong for the first 10^19 eV event made by
303 ! olixxx. it is 0~99999; while correct one should be
304 ! 1~100000. we neglect data at 0 and 100000.
305  if(bufc .eq. 100000) bufc=bufc-1
306  endif
307  if(bufc .gt. 0) then
308  abuf= buf(bufc)
309  bufc = bufc -1
310  icon = 0
311  else
312  write(0, *) ' strange bufc'
313  stop 99999
314  endif
315  return
316  100 continue
317  icon = 1
318  return
319  500 continue
320  write(0,*) ' input data read err'
321  stop
nodes i
*Zfirst p fm *Zfirst p Zfirst p code
Definition: ZavoidUnionMap.h:1
Here is the caller graph for this function: