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