COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cskipComment.f
Go to the documentation of this file.
1 !c test copenf and cskipComment
2 ! implicit none
3 ! character*80 string, fn
4 
5 ! data fn/'../Data/Primary/sample.dat'/
6 
7 ! integer icon
8 ! call copenf(TempDev, fn, icon)
9 ! write(*, *) " icon=", icon
10 ! call cskipComment(TempDev, icon)
11 ! write(*, *) ' icon= ', icon
12 ! read(TempDev, '(a)') string
13 ! write(*, *) string
14 ! end
15 ! kskip_commnet *****************************************************
16 ! skip data until a line starting with "#------------ "
17 !
18  subroutine cskipcomment(io, icon)
19 ! io: integer. input.logical file #
20 ! icon: integer. output. 0 --> ok
21 ! 1 --> no such line or error
22 !
23  implicit none
24  integer io, icon
25 
26  character*16 headline
27  integer ios
28  logical ok
29 
30  ok = .false.
31  icon = 0
32  do while(.not. ok)
33  read(io, '(a)', iostat=ios) headline
34  if(ios .ne. 0) then
35  icon = 1
36  ok = .true.
37  write(*, *) ' no separator'
38  else
39  ok =headline(1:16) .eq. '#---------------'
40  endif
41  enddo
42  end
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
Definition: cblkElemag.h:7
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon ! knockon is considered Obsolete *PhotoProd false
Definition: cblkElemag.h:7
subroutine cskipcomment(io, icon)
Definition: cskipComment.f:19