The Elk Code
 
Loading...
Searching...
No Matches
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
6pure complex(8) function zfmtint(nr,nri,wr,zfmt)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: nr,nri
11real(8), intent(in) :: wr(nr)
12complex(8), intent(in) :: zfmt(*)
13! local variables
14integer iro,i0,i1
15i1=lmmaxi*(nri-1)+1
16zfmtint=sum(wr(1:nri)*zfmt(1:i1:lmmaxi))
17iro=nri+1
18i0=i1+lmmaxi
19i1=lmmaxo*(nr-iro)+i0
20zfmtint=zfmtint+sum(wr(iro:nr)*zfmt(i0:i1:lmmaxo))
22end function
23
real(8), parameter y00
Definition modmain.f90:1233
integer lmmaxi
Definition modmain.f90:207
real(8), parameter fourpi
Definition modmain.f90:1231
integer lmmaxo
Definition modmain.f90:203
pure complex(8) function zfmtint(nr, nri, wr, zfmt)
Definition zfmtint.f90:7