The Elk Code
polefit.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2017 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 real(8) function polefit(zfm,c)
7 use modgw
8 implicit none
9 ! arguments
10 complex(8), intent(in) :: zfm(0:nwfm),c(2*npole+1)
11 ! local variables
12 integer iw
13 complex(8) z1
14 ! external functions
15 complex(8), external :: zfpole
16 polefit=0.d0
17 do iw=0,nwfm
18  z1=zfm(iw)-zfpole(c,wfm(iw))
19  polefit=polefit+z1%re**2+z1%im**2
20 end do
21 end function
22 
pure complex(8) function zfpole(c, z)
Definition: zfpole.f90:7
real(8) function polefit(zfm, c)
Definition: polefit.f90:7
integer npole
Definition: modgw.f90:32
Definition: modgw.f90:6
integer nwfm
Definition: modgw.f90:19
complex(8), dimension(:), allocatable wfm
Definition: modgw.f90:25