The Elk Code
Loading...
Searching...
No Matches
rfmtlm.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2016 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
6
pure
subroutine
rfmtlm
(lm,nr,nri,rfmt,fr)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: lm,nr,nri
11
real
(8),
intent(in)
:: rfmt(
npmtmax
)
12
real
(8),
intent(out)
:: fr(
nrmtmax
)
13
! local variables
14
integer
iro,i0,i1
15
if
(lm >
lmmaxi
)
then
16
fr(1:nri)=0.d0
17
else
18
i1=
lmmaxi
*(nri-1)+lm
19
fr(1:nri)=rfmt(lm:i1:
lmmaxi
)
20
end if
21
iro=nri+1
22
if
(lm >
lmmaxo
)
then
23
fr(iro:nr)=0.d0
24
else
25
i0=
lmmaxi
*nri+lm
26
i1=
lmmaxo
*(nr-iro)+i0
27
fr(iro:nr)=rfmt(i0:i1:
lmmaxo
)
28
end if
29
end subroutine
30
modmain
Definition
modmain.f90:6
modmain::lmmaxi
integer lmmaxi
Definition
modmain.f90:207
modmain::npmtmax
integer npmtmax
Definition
modmain.f90:216
modmain::nrmtmax
integer nrmtmax
Definition
modmain.f90:152
modmain::lmmaxo
integer lmmaxo
Definition
modmain.f90:203
rfmtlm
pure subroutine rfmtlm(lm, nr, nri, rfmt, fr)
Definition
rfmtlm.f90:7
rfmtlm.f90
Generated by
1.9.8