ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
_ext_m.f
Go to the documentation of this file.
1 
2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 
4  subroutine f_ext_fil(pcequi,ncequi)
5 
6  include 'double.inc'
7  include 'prm.inc'
8  include 'parrc1.inc'
9  include 'parrc2.inc'
10  parameter(nekp=npfc0+nplim)
11  include 'comrec.inc'
12  include 'comevl.inc'
13 
14  common /comext/ zaindk(nip,njp,nekp)
15  real *4 zaindk
16 
17  real*8 pcequi(*)
18  integer ncequi
19 
20  ncpfc=nloc(npfc)
21 
22  do j=1,nj
23  do i=1,ni
24  ue(i,j)=0.d0
25  enddo
26  enddo
27 
28  do iq=1,ncequi
29  egcurr=pcequi(iq)*amu0
30  do i=1,ni
31  do j=1,nj
32  vrftfa=zaindk(i,j,iq)
33  ue(i,j)=ue(i,j)+vrftfa*egcurr
34  enddo
35  enddo
36  enddo
37 
38  !open(1,file='ue_test.pr',form='formatted')
39  ! write(1,*)'ue'
40  ! write(1,*)'ni nj',ni,nj
41  ! write(1,*)((ue(i,j),i=1,ni),j=1,nj)
42  !close(1)
43 
44 
45 
46 
47  return
48  end
49 c
50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
51 c
52  subroutine f_rdexf(ncequi)
53 
54  include 'double.inc'
55  include 'prm.inc'
56  include 'parrc1.inc'
57  include 'parrc2.inc'
58  parameter(nekp=npfc0+nplim)
59  include 'comrec.inc'
60  include 'comevl.inc'
61 
62  common /comext/ zaindk(nip,njp,nekp)
63 
64  real*4 zaindk
65 
66  real*8 aindk(nip,njp)
67 
68  write(fname,'(a,a)') path(1:kname),'exf.wr'
69  open(1,file=fname)
70  !open(1,file='exf.wr',form='formatted')
71 
72  read(1,*) nk,nequi
73 
74  !if(nk.ne.nkread) then
75  ! write(6,*) '***ERROR:'
76  !write(6,*)' you change total number of currents'
77  !write(6,*)' nk_read=',nkread,'nk from trecur=',nk
78  !write(6,*)' put icont=0 and start again'
79  !stop
80  !endif
81 
82  ncpfc=nloc(npfc)
83 
84  do iq=1,ncequi
85  read(1,*) ((aindk(i,j),j=1,nj),i=1,ni)
86  do j=1,nj
87  do i=1,ni
88  zaindk(i,j,iq)=aindk(i,j)
89  enddo
90  enddo
91  enddo
92 
93 ! ibeg=ncpfc + 1
94 ! if(ibeg.gt.nk) go to 22
95 ! iq=nequi
96 ! do ik=ibeg,nk
97 ! iq=iq+1
98 ! read(1) ((aindk(i,j),i=1,ni),j=1,nj)
99 ! do i=1,ni
100 ! do j=1,nj
101 ! zaindk(i,j,iq)=aindk(i,j)
102 ! enddo
103 ! enddo
104 ! enddo
105 !
106 ! 22 continue
107 
108  close(1)
109 
110  return
111  end
112 c!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
113 
subroutine f_rdexf(ncequi)
Definition: _ext_m.f:52
subroutine f_ext_fil(pcequi, ncequi)
Definition: _ext_m.f:4