source: PSPA/parmelaPSPA/trunk/sortie.f @ 315

Last change on this file since 315 was 12, checked in by lemeur, 12 years ago

parmela pspa initial

File size: 1.3 KB
Line 
1      subroutine sortie(np,ngood,wtp)
2c-----------------------------------------------------------------------
3c   The subroutine is for the graphic at LAL
4c-----------------------------------------------------------------------
5c
6      include 'param_sz.h'
7      include 'constcom.h'
8      include 'coordcom.h'
9      include 'flagcom.h'
10      include 'misccom.h'
11      include 'pcordcom.h'
12      include 'syscom.h'
13      include 'ucom.h'
14c
15      common/part/nparticle(imaa)
16c--------------------------------------------------------------------------
17c*
18      ne=rne
19      xx=x
20      yy=
21      xxp=bgx/bgz
22      yyp=bgy/bgz
23c---if there is a background bfield the beam is rotating.
24c   therefor transform to the rotation frame of referance.
25      if(ifld.ne.0)then
26         if(ifoclal.eq.1) then
27           cay=bfldlal(z)/(brhof*sqrt(gamma**2-1.))
28         else
29           cay=bfld(z,sqrt(x**2+y**2),brfld)/(brhof*sqrt(gamma**2-1.))
30         endif
31         xxp=bgx/bgz-.5*cay*y
32         yyp=bgy/bgz+.5*cay*x
33      endif
34      phi=wtp   
35      wz=(gamma-1.)*erest   
36      if(ne.eq.0) go to 10
37      write(ndes1,*) xx,xxp,bgx,yy,yyp,bgy,z,bgz,phi,wz,ne,np,
38     1   ngood,nparticle(np),phizero(np),ksi1(np),ksi2(np),ksi3(np)
39c     unit ndes1 end of element z=cte
40 10   continue
41      end
42c++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
Note: See TracBrowser for help on using the repository browser.