COSMOS v7.655  COSMOSv7655
(AirShowerMC)
inc_writeNrfai.f
Go to the documentation of this file.
1 ! here we write limit; at reduce process, non enhanced value
2 ! is needed (at MPI env, limit is real limit now)
3 #if defined (DOMPI)
4  msg =dir(1:lengdir)//"/"//execid(1:lengid)//".nrfai"
5 #define nrfaiAllXXX nrfaiAllA
6 ! #define nrfaiAllXXX nrfaiAll
7 #define dErfaiXXX dErfaiA
8 ! #define dErfaiXXX dErfai
9 #else
10  msg =dir(1:lengdir)//"/"//execid(1:lengid)//
11  * "-@."//numb(1:lengn)//".nrfai"
12 
13 #define nrfaiAllXXX nrfaiAll
14 #define dErfaiXXX dErfai
15 #endif
16 
17  call copenfw2(fnonrfai, msg, 1, icon)
18  if(icon .gt. 1) then
19  write(0,*) ' icon=', icon
20  call cerrormsg(msg, 1)
21  call cerrormsg('could not be opened', 0)
22  endif
23  write(fnonrfai,
24  * '(i2,1pE11.3, 0p,i3, f8.4, 1pE11.3, 0p, 4i4,4f10.0)')
25  * eventno, e0, nn, cosz, keminobs, nrbin, nfai, ansites,
26  * noofsites, limit ! this is not exist in the older version
27 ! KEminObs above was limit (non array).
28 !
29  do i = 1, ansites
30  l = indivdep(i)
31  do j = 1, 4
32  do k = 1, nfai
33  write(fnonrfai, '("rec",f7.1, 4i4)' )
34  * depthlist(l)*0.1, l, i, j, k
35  write(fnonrfai, '(1p10E11.3)')
36  * ( nrfairec(m,k,j,i), m=1,nrbin )
37  enddo
38  enddo
39  enddo
40 
41  do i = 1, noofsites
42  do j = 1, 4
43  do k = 1, nfai
44  write(fnonrfai, '("all",f7.1, 4i4)' )
45  * depthlist(i)*0.1, i, i, j, k
46  write(fnonrfai, '(1p10E11.3)')
47  * ( nrfaiallxxx(m,k,j,i), m=1,nrbin )
48  enddo
49  enddo
50  enddo
51 ! dE/dx lateral
52  do i = 1, noofsites
53  do k = 1, nfai
54  write(fnonrfai, '("dE/dx",f7.1, 3i4)' )
55  * depthlist(i)*0.1, i, i, k
56  write(fnonrfai, '(1p10E11.3)')
57  * ( derfaixxx(m,k,i), m=1,nrbin )
58 ! next is not yet assumed in MPI
59  if(seelowde) write(fnonrfai, '(1p10E11.3)')
60  * ( derfai2(m,k,i), m=1,nrbin )
61  enddo
62  enddo
63 
64  write(fnonrfai, *)
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
nodes i
integer lengn
Definition: interface2.h:1
! timing nrbin
Definition: Zprivate2.h:12
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
subroutine copenfw2(io, fnin, form, icon)
Definition: copenf.f:205
block data include Zlatfit h c fitting region data data data data data d0 data data d0 data data m
Definition: ZlatfitBD.h:35
! timing nfai
Definition: Zprivate2.h:12