The Elk Code
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
6
pure subroutine
rfmtftoc
(nrc,nrci,rfmt,rfcmt)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: nrc,nrci
11
real(8)
,
intent(in)
:: rfmt(*)
12
real(8)
,
intent(out)
:: rfcmt(*)
13
! local variables
14
integer
irc,i,j,k
15
i=1
16
j=1
17
k=
lmmaxi
*
lradstp
18
do
irc=1,nrci
19
rfcmt(i:i+
lmmaxi
-1)=rfmt(j:j+
lmmaxi
-1)
20
i=i+
lmmaxi
21
j=j+k
22
end do
23
j=j+(
lradstp
-1)*(
lmmaxo
-
lmmaxi
)
24
k=
lmmaxo
*
lradstp
25
do
irc=nrci+1,nrc
26
rfcmt(i:i+
lmmaxo
-1)=rfmt(j:j+
lmmaxo
-1)
27
i=i+
lmmaxo
28
j=j+k
29
end do
30
end subroutine
31
modmain::lmmaxo
integer lmmaxo
Definition:
modmain.f90:205
modmain
Definition:
modmain.f90:6
modmain::lradstp
integer lradstp
Definition:
modmain.f90:173
modmain::lmmaxi
integer lmmaxi
Definition:
modmain.f90:209
rfmtftoc
pure subroutine rfmtftoc(nrc, nrci, rfmt, rfcmt)
Definition:
rfmtftoc.f90:7
rfmtftoc.f90
Generated by
1.8.14