COSMOS v7.655  COSMOSv7655
(AirShowerMC)
interface2.f
Go to the documentation of this file.
1 
2  data kd/' g', ' e', ' m'/
3  save kd
4 
5  do i= 1, nsites
6  histdep(i) = 0
7  indivdep(i) = 0
8  enddo
9 
10  leng = kgetenv2("HISTDEP", input)
11  read(input, *) histdep
12 
13  leng = kgetenv2("INDIVDEP", input)
14  read(input, *) indivdep
15 
16  leng = kgetenv2("OUTPUT", input)
17  read(input, *) recxy, tklat, tkelosslat, tkrespec,
18  * tkrzspec, tkzfspec, tkrfspec, tkefspec,
19  * tkretspec, tkrtspec,
20  * tkrezspec, tkrzfspec, tkrefspec, tkarspec
21 
22  binw = 2
23 
24 
25  msg =input(1:leng)//
26  * "/"//execid(1:lengid)//"-@."//numb(1:lengn)//".hist"
27  call copenfw2(fno, msg, binw, icon) ! binary write
28  if(icon .gt. 1) then
29  write(0,*) ' icon=', icon
30  call cerrormsg(msg, 1)
31  call cerrormsg('could not be opened', 0)
32  endif
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
integer lengid integer lengdir character *dir integer kgetenv2 character *numb character *execid character *msg logical takehist save do nsites histdep(i)=0indivdep(i)=0enddo leng
integer function kgetenv2(envname, envresult)
Definition: cgetLoginN.f:77
nodes i
integer lengn
Definition: interface2.h:1
integer leng
Definition: interface2.h:1
logical KeepWeight ! see setupenv sh logical tkarspec ! get lateral histo in a web fai bin logical tkrtspec ! get time histo in each web bin logical SeeLowdE common Zprivatec2 tkrtspec
Definition: Zprivate4.h:7
subroutine copenfw2(io, fnin, form, icon)
Definition: copenf.f:205
logical KeepWeight ! see setupenv sh logical tkarspec ! get lateral histo in a web fai bin logical tkrtspec ! get time histo in each web bin logical SeeLowdE common Zprivatec2 tkarspec
Definition: Zprivate4.h:7