COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cinc_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 dErfaiXXX dErfaiA
7 #else
8  msg =dir(1:lengdir)//"/"//execid(1:lengid)//
9  * "-@."//numb(1:lengn)//".nrfai"
10 
11 #define nrfaiAllXXX nrfaiAll
12 #define dErfaiXXX dErfai
13 #endif
14 
15  call copenfw2(fnonrfai, msg, 1, icon)
16  if(icon .gt. 1) then
17  write(0,*) ' icon=', icon
18  call cerrormsg(msg, 1)
19  call cerrormsg('could not be opened', 0)
20  endif
21  write(fnonrfai,
22  * '(i2,1pE11.3, 0p,i3, f8.4, 1pE11.3, 0p, 4i4,4f10.0)')
23  * eventno, e0, nn, cosz, keminobs, nrbin, nfai, ansites,
24  * noofsites, limit ! this is not exist in the older version
25 ! KEminObs above was limit (non array).
26 !
27  do i = 1, ansites
28  l = indivdep(i)
29  do j = 1, 4
30  do k = 1, nfai
31  write(fnonrfai, '("rec",f7.1, 4i4)' )
32  * depthlist(l)*0.1, l, i, j, k
33  write(fnonrfai, '(1p10E11.3)')
34  * ( nrfairec(m,k,j,i), m=1,nrbin )
35  enddo
36  enddo
37  enddo
38 
39  do i = 1, noofsites
40  do j = 1, 4
41  do k = 1, nfai
42  write(fnonrfai, '("all",f7.1, 4i4)' )
43  * depthlist(i)*0.1, i, i, j, k
44  write(fnonrfai, '(1p10E11.3)')
45  * ( nrfaiallxxx(m,k,j,i), m=1,nrbin )
46  enddo
47  enddo
48  enddo
49 ! dE/dx lateral
50  do i = 1, noofsites
51  do k = 1, nfai
52  write(fnonrfai, '("dE/dx",f7.1, 3i4)' )
53  * depthlist(i)*0.1, i, i, k
54  write(fnonrfai, '(1p10E11.3)')
55  * ( derfaixxx(m,k,i), m=1,nrbin )
56 ! next is not yet assumed in MPI
57  if(seelowde) write(fnonrfai, '(1p10E11.3)')
58  * ( derfai2(m,k,i), m=1,nrbin )
59  enddo
60  enddo
61 
62  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