The Elk Code
 
Loading...
Searching...
No Matches
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
6real(8) function polefit(zfm,c)
7use modgw
8implicit none
9! arguments
10complex(8), intent(in) :: zfm(0:nwfm),c(2*npole+1)
11! local variables
12integer iw
13complex(8) z1
14! external functions
15complex(8), external :: zfpole
16polefit=0.d0
17do iw=0,nwfm
18 z1=zfm(iw)-zfpole(c,wfm(iw))
19 polefit=polefit+z1%re**2+z1%im**2
20end do
21end function
22
Definition modgw.f90:6
complex(8), dimension(:), allocatable wfm
Definition modgw.f90:25
integer npole
Definition modgw.f90:32
integer nwfm
Definition modgw.f90:19
real(8) function polefit(zfm, c)
Definition polefit.f90:7
pure complex(8) function zfpole(c, z)
Definition zfpole.f90:7