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