The Elk Code
zfmtwr.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2020 J. K. Dewhurst and S. Sharma.
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
zfmtwr
(nr,nri,wr,zfmt)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: nr,nri
11
real(8)
,
intent(in)
:: wr(nr)
12
complex(8)
,
intent(inout)
:: zfmt(*)
13
! local variables
14
integer
ir,i
15
i=1
16
if
(
lmaxi
== 1)
then
17
do
ir=1,nri
18
zfmt(i:i+3)=wr(ir)*zfmt(i:i+3)
19
i=i+4
20
end do
21
else
22
do
ir=1,nri
23
zfmt(i:i+
lmmaxi
-1)=wr(ir)*zfmt(i:i+
lmmaxi
-1)
24
i=i+
lmmaxi
25
end do
26
end if
27
do
ir=nri+1,nr
28
zfmt(i:i+
lmmaxo
-1)=wr(ir)*zfmt(i:i+
lmmaxo
-1)
29
i=i+
lmmaxo
30
end do
31
end subroutine
32
modmain::lmmaxo
integer lmmaxo
Definition:
modmain.f90:205
zfmtwr
pure subroutine zfmtwr(nr, nri, wr, zfmt)
Definition:
zfmtwr.f90:7
modmain
Definition:
modmain.f90:6
modmain::lmmaxi
integer lmmaxi
Definition:
modmain.f90:209
modmain::lmaxi
integer lmaxi
Definition:
modmain.f90:207
zfmtwr.f90
Generated by
1.8.14