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
6pure subroutine zfmtwr(nr,nri,wr,zfmt)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: nr,nri
11real(8), intent(in) :: wr(nr)
12complex(8), intent(inout) :: zfmt(*)
13! local variables
14integer n,ir,i
15i=1
16if (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
21else
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
27end if
28n=lmmaxo-1
29do ir=nri+1,nr
30 zfmt(i:i+n)=wr(ir)*zfmt(i:i+n)
31 i=i+lmmaxo
32end do
33end subroutine
34
integer lmmaxi
Definition modmain.f90:207
integer lmaxi
Definition modmain.f90:205
integer lmmaxo
Definition modmain.f90:203
pure subroutine zfmtwr(nr, nri, wr, zfmt)
Definition zfmtwr.f90:7