The Elk Code
Loading...
Searching...
No Matches
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
n,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
n=
lmmaxi
-1
23
do
ir=1,nri
24
zfmt(i:i+n)=wr(ir)*zfmt(i:i+n)
25
i=i+
lmmaxi
26
end do
27
end if
28
n=
lmmaxo
-1
29
do
ir=nri+1,nr
30
zfmt(i:i+n)=wr(ir)*zfmt(i:i+n)
31
i=i+
lmmaxo
32
end do
33
end subroutine
34
modmain
Definition
modmain.f90:6
modmain::lmmaxi
integer lmmaxi
Definition
modmain.f90:207
modmain::lmaxi
integer lmaxi
Definition
modmain.f90:205
modmain::lmmaxo
integer lmmaxo
Definition
modmain.f90:203
zfmtwr
pure subroutine zfmtwr(nr, nri, wr, zfmt)
Definition
zfmtwr.f90:7
zfmtwr.f90
Generated by
1.9.8