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
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
))
20
rfmtint
=
fourpi
*
y00
*
rfmtint
21
end function
22
modmain
Definition
modmain.f90:6
modmain::y00
real(8), parameter y00
Definition
modmain.f90:1233
modmain::lmmaxi
integer lmmaxi
Definition
modmain.f90:207
modmain::fourpi
real(8), parameter fourpi
Definition
modmain.f90:1231
modmain::lmmaxo
integer lmmaxo
Definition
modmain.f90:203
rfmtint
pure real(8) function rfmtint(nr, nri, wr, rfmt)
Definition
rfmtint.f90:7
rfmtint.f90
Generated by
1.9.8