COSMOS v7.655  COSMOSv7655
(AirShowerMC)
creadParam.f
Go to the documentation of this file.
1 ! read Parameters for the cosmos simulation.
2 !
3 ! *********************************
4  subroutine creadparam(io)
6  use modmcsparam
7  implicit none
8 #include "ZincForNameL.h"
9 
10  integer io ! logical file #. 5 is standard input.
11 ! even if it is not stdin on some system.
12 ! If this is not 5, the corresponding
13 ! disk file must have been opened.
14  if(io .eq. 5) then
15  read(*, param, end=100)
16  else
17  read(io, param, end=100)
18  endif
19 ! if(hidden) then
20  if(io .eq. 5) then
21  read(*, hparam, end=80, err=50)
22  else
23  read(io, hparam, end=80, err=50)
24  endif
25  80 continue
26 ! endif
27  return
28  50 continue
29  write(0,*) 'Error data in the namelist: HParam'
30  write(0,*) 'Possible cause may be "ALateCor (D=1)" which'
31  write(0,*) 'is now an integer (old version was logcial)'
32  write(0,*) 'but may be others; see next error position'
33  if(io .eq. 5) then
34  read(*, hparam)
35  else
36  read(io, hparam)
37  endif
38  stop
39  100 continue
40  write(0,*) 'creadParam. Namelist assumed on I/O unit number=',
41  * io
42  call
43  * cerrormsg('but dose not exist', 1)
44  end
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer op real x1h common Zfitc * param
Definition: Zfit.h:15
subroutine creadparam(io)
Definition: creadParam.f:5