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
6pure subroutine rfmtlm(lm,nr,nri,rfmt,fr)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: lm,nr,nri
11real(8), intent(in) :: rfmt(npmtmax)
12real(8), intent(out) :: fr(nrmtmax)
13! local variables
14integer iro,i0,i1
15if (lm > lmmaxi) then
16 fr(1:nri)=0.d0
17else
18 i1=lmmaxi*(nri-1)+lm
19 fr(1:nri)=rfmt(lm:i1:lmmaxi)
20end if
21iro=nri+1
22if (lm > lmmaxo) then
23 fr(iro:nr)=0.d0
24else
25 i0=lmmaxi*nri+lm
26 i1=lmmaxo*(nr-iro)+i0
27 fr(iro:nr)=rfmt(i0:i1:lmmaxo)
28end if
29end subroutine
30
integer lmmaxi
Definition modmain.f90:207
integer npmtmax
Definition modmain.f90:216
integer nrmtmax
Definition modmain.f90:152
integer lmmaxo
Definition modmain.f90:203
pure subroutine rfmtlm(lm, nr, nri, rfmt, fr)
Definition rfmtlm.f90:7