The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine zlrzncnv(n,s,w,zf)
7implicit none
8! arguments
9integer, intent(in) :: n
10real(8), intent(in) :: s,w(n)
11complex(8), intent(inout) :: zf(n)
12! local variables
13integer i,j
14real(8), parameter :: pi=3.1415926535897932385d0
15real(8) s2,wi,dw
16complex(8) zsm
17! automatic arrays
18complex(8) zg(n)
19s2=s**2
20do 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
28end do
29zf(1:n)=zg(1:n)
30end subroutine
31
subroutine zlrzncnv(n, s, w, zf)
Definition zlrzncnv.f90:7