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

Go to the source code of this file.

Functions/Subroutines

subroutine creadparam (io)
 

Function/Subroutine Documentation

◆ creadparam()

subroutine creadparam ( integer  io)

Definition at line 5 of file creadParam.f.

References cerrormsg(), and param.

Referenced by __atmosd.f__(), __atmosd2.f__(), __atmosd3.f__(), __atmosd4.f__(), __det2exyz.f__(), __det2prim.f__(), __det2prim2.f__(), __getacceptance.f__(), __getst.f__(), __getst2.f__(), __getst3.f__(), __showspec.f__(), __testsampprim.f__(), __xyz2det.f__(), cgetskelfile(), cmanager(), convcoord(), crestorestatus(), init(), main(), showparam(), and testinitobs().

5  use modefield
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)
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
Here is the call graph for this function:
Here is the caller graph for this function: