The Elk Code
 
Loading...
Searching...
No Matches
rfmtftoc.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 rfmtftoc(nrc,nrci,rfmt,rfcmt)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: nrc,nrci
11real(8), intent(in) :: rfmt(*)
12real(8), intent(out) :: rfcmt(*)
13! local variables
14integer irc,i,j,m,n
15i=1
16j=1
18n=lmmaxi-1
19do irc=1,nrci
20 rfcmt(i:i+n)=rfmt(j:j+n)
21 i=i+lmmaxi
22 j=j+m
23end do
24j=j+(lradstp-1)*(lmmaxo-lmmaxi)
26n=lmmaxo-1
27do irc=nrci+1,nrc
28 rfcmt(i:i+n)=rfmt(j:j+n)
29 i=i+lmmaxo
30 j=j+m
31end do
32end subroutine
33
integer lmmaxi
Definition modmain.f90:207
integer lradstp
Definition modmain.f90:171
integer lmmaxo
Definition modmain.f90:203
pure subroutine rfmtftoc(nrc, nrci, rfmt, rfcmt)
Definition rfmtftoc.f90:7