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