Line | |
---|
1 | subroutine sortie(np,ngood,wtp) |
---|
2 | c----------------------------------------------------------------------- |
---|
3 | c The subroutine is for the graphic at LAL |
---|
4 | c----------------------------------------------------------------------- |
---|
5 | c |
---|
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' |
---|
14 | c |
---|
15 | common/part/nparticle(imaa) |
---|
16 | c-------------------------------------------------------------------------- |
---|
17 | c* |
---|
18 | ne=rne |
---|
19 | xx=x |
---|
20 | yy=y |
---|
21 | xxp=bgx/bgz |
---|
22 | yyp=bgy/bgz |
---|
23 | c---if there is a background bfield the beam is rotating. |
---|
24 | c 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) |
---|
39 | c unit ndes1 end of element z=cte |
---|
40 | 10 continue |
---|
41 | end |
---|
42 | c++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++* |
---|
Note: See
TracBrowser
for help on using the repository browser.