The Elk Code
zlrzncnv.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2024 J. K. Dewhurst and S. Sharma.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 subroutine zlrzncnv(n,s,w,zf)
7 implicit none
8 ! arguments
9 integer, intent(in) :: n
10 real(8), intent(in) :: s,w(n)
11 complex(8), intent(inout) :: zf(n)
12 ! local variables
13 integer i,j
14 real(8), parameter :: pi=3.1415926535897932385d0
15 real(8) s2,wi,dw
16 complex(8) zsm
17 ! automatic arrays
18 complex(8) zg(n)
19 s2=s**2
20 do i=1,n
21  wi=w(i)
22  zsm=0.d0
23  do j=1,n-1
24  dw=w(j+1)-w(j)
25  zsm=zsm+zf(j)*(dw/((w(j)-wi)**2+s2))
26  end do
27  zg(i)=zsm*s/pi
28 end do
29 zf(1:n)=zg(1:n)
30 end subroutine
31 
subroutine zlrzncnv(n, s, w, zf)
Definition: zlrzncnv.f90:7