The Elk Code
zfmtint.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2018 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 pure complex(8) function zfmtint(nr,nri,wr,zfmt)
7 use modmain
8 implicit none
9 ! arguments
10 integer, intent(in) :: nr,nri
11 real(8), intent(in) :: wr(nr)
12 complex(8), intent(in) :: zfmt(*)
13 ! local variables
14 integer iro,i0,i1
15 i1=lmmaxi*(nri-1)+1
16 zfmtint=sum(wr(1:nri)*zfmt(1:i1:lmmaxi))
17 iro=nri+1
18 i0=i1+lmmaxi
19 i1=lmmaxo*(nr-iro)+i0
20 zfmtint=zfmtint+sum(wr(iro:nr)*zfmt(i0:i1:lmmaxo))
22 end function
23 
integer lmmaxo
Definition: modmain.f90:203
pure complex(8) function zfmtint(nr, nri, wr, zfmt)
Definition: zfmtint.f90:7
integer lmmaxi
Definition: modmain.f90:207
real(8), parameter fourpi
Definition: modmain.f90:1234
real(8), parameter y00
Definition: modmain.f90:1236