The Elk Code
rfcmtwr.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 subroutine
rfcmtwr
(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)
12
real(8)
,
intent(inout)
:: rfmt(*)
13
! local variables
14
integer
ir,i
15
real(8)
t1
16
i=1
17
if
(
lmaxi
== 1)
then
18
do
ir=1,nri
19
rfmt(i:i+3)=(
pi
*wr(ir))*rfmt(i:i+3)
20
i=i+4
21
end do
22
else
23
t1=
fourpi
/dble(
lmmaxi
)
24
do
ir=1,nri
25
rfmt(i:i+
lmmaxi
-1)=(t1*wr(ir))*rfmt(i:i+
lmmaxi
-1)
26
i=i+
lmmaxi
27
end do
28
end if
29
t1=
fourpi
/dble(
lmmaxo
)
30
do
ir=nri+1,nr
31
rfmt(i:i+
lmmaxo
-1)=(t1*wr(ir))*rfmt(i:i+
lmmaxo
-1)
32
i=i+
lmmaxo
33
end do
34
end subroutine
35
modmain::lmmaxo
integer lmmaxo
Definition:
modmain.f90:205
modmain::pi
real(8), parameter pi
Definition:
modmain.f90:1232
rfcmtwr
pure subroutine rfcmtwr(nr, nri, wr, rfmt)
Definition:
rfcmtwr.f90:7
modmain
Definition:
modmain.f90:6
modmain::lmmaxi
integer lmmaxi
Definition:
modmain.f90:209
modmain::fourpi
real(8), parameter fourpi
Definition:
modmain.f90:1234
modmain::lmaxi
integer lmaxi
Definition:
modmain.f90:207
rfcmtwr.f90
Generated by
1.8.14