ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
_eqain.f
Go to the documentation of this file.
1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2  subroutine eqa_in(alf0,alf1,alf2,bet0,bet1,bet2,nursb,
3  * keyctr,igdf,nstep,platok,
4  * pcequi,ncequi, b0cen,r0cen,
5  * rloop,zloop,nloop, rprob,zprob,nprob,
6  * necon,wecon,ntipe )
7 
8  include 'double.inc'
9  include 'parevo.inc'
10  parameter(nkp=njlim)
11  include 'dim.inc'
12  !!include 'comlmtr.inc'
13  include 'compol.inc'
14  include 'compol_add.inc'
15 c -----------------------------
16  include 'urs.inc'
17  parameter(nursp4=nursp+4,nursp6=nursp4*6)
18 
19  real*8 wecon(*)
20  real*8 rloop(*),zloop(*),rprob(*),zprob(*)
21  real*8 pcequi(*)
22 
23  integer ntipe(*),necon(*)
24 
25  dimension pstab(nursp),qtab(nursp)
26 
27  real*8 rrk(nursp4),cck(nursp4),wrk(nursp6)
28  real*8 cwk(4)
29 
30  abs(xx)=dabs(xx)
31  sqrt(xx)=dsqrt(xx)
32 
33  alf0p=alf0
34  alf1p=alf1
35  alf2p=alf2
36  bet0f=bet0
37  bet1f=bet1
38  bet2f=bet2
39  b0ax = b0cen
40  r0ax = r0cen
41  tok = platok
42 
43 c...input initial data
44 
45  write(fname,'(a,a)') path(1:kname),'egg.dat'
46  open(1,file=fname)
47 
48  !open(1,file='egg.dat')
49 
50  read(1,*) i_vac
51  !read(1,*) nt
52  !read(1,*) iplas
53  read(1,*) alp
54  read(1,*) k_dummy !(is not used)
55  read(1,*) nctrl
56 
57  ! write(6,*) ' egg.dat'
58  close(1)
59 
60  nr=iplas+i_vac
61 
62  itrmax=100
63  nitmax=5
64  nitdel=7
65  nitbeg=5 !000
66 
67 
68  cnor=1.d0
69 
70  jrolim=2 !+(nt-2)/2
71 
72  if(nctrl.eq.1 ) then
73 
74  write(fname,'(a,a)') path(1:kname),'limpnt_d.wr'
75  open(1,file=fname)
76 
77  !open(1,file='limpnt_d.wr')
78 
79  read(1,*) nblm
80  do 2215 i=1,nblm
81  read(1,*) rblm(i),zblm(i)
82  2215 continue
83 
84  close(1)
85  endif
86 
87  call rdrec
88 
89 
90  !call taburs(0,1.d0,nursb)
91  !call f_grid(igdf,nstep)
92  call grid_spdr
93 
94  call f_wrd
95 
96  fvac=b0cen*r0cen
97 
98  nr1=nr-1
99  nt1=nt-1
100 
101  nr2=nr-2
102  nt2=nt-2
103 
104  iplas1=iplas-1
105 
106  iplasm=iplas
107  nroi=nr
108  ntetj=nt
109 
110 
111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
112  go to 224
113 
114  if(keyctr.eq.10) then
115 
116  write(fname,'(a,a)') path(1:kname),'tab_q.dat'
117  open(1,file=fname)
118  !open(1,file='tab_q.dat')
119 
120  read(1,*) nutab
121 
122  do i=1,nutab
123 
124  read(1,*) pstab(i), qtab(i)
125 
126  enddo
127 
128 
129  do i=1,nutab
130 
131  pstab(i)=pstab(i)/pstab(nutab)
132 
133  enddo
134 
135  CALL e01baf(nutab,pstab,qtab,rrk,cck,
136  * nutab+4,wrk,6*nutab+16,ifail)
137 
138  do i=1,iplas1
139 
140  psia05=1.d0-0.5d0*(psia(i)+psia(i+1))
141 
142  CALL e02bcf(nutab+4,rrk,cck,psia05,0,cwk,ifail)
143 
144  q(i)=cwk(1)*2.d0*pi
145 
146  enddo
147 
148  qcen=qtab(1)
149  q(iplas)=qtab(nutab)*2.d0*pi
150 
151  endif
152 
153  224 continue
154 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
155 
156  call f_rdexf(ncequi)
157 
158  call f_ext_fil(pcequi,ncequi)
159 
160 
161  return
162  end
163 
164 
165 
subroutine grid_spdr
Definition: _mesh.f:2187
subroutine e02bcf(NCAP7, K, C, X, LEFT, S, IFAIL)
Definition: NAG.f:2761
subroutine f_wrd
Definition: _wrd.f:107
subroutine eqa_in(alf0, alf1, alf2, bet0, bet1, bet2, nursb,
Definition: _eqain.f:2
subroutine rdrec
Definition: _wrd.f:558
subroutine f_rdexf(ncequi)
Definition: _ext_m.f:52
subroutine e01baf(M, X, Y, K, C, LCK, WRK, LWRK, IFAIL)
Definition: NAG.f:2511
subroutine f_ext_fil(pcequi, ncequi)
Definition: _ext_m.f:4