The Elk Code
zcfmtwr.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2021 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 zcfmtwr(nr,nri,wr,zfmt,cfmt)
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(in) :: zfmt(*)
13 complex(4), intent(out) :: cfmt(*)
14 ! local variables
15 integer ir,i
16 i=1
17 if (lmaxi == 1) then
18  do ir=1,nri
19  cfmt(i:i+3)=wr(ir)*zfmt(i:i+3)
20  i=i+4
21  end do
22 else
23  do ir=1,nri
24  cfmt(i:i+lmmaxi-1)=wr(ir)*zfmt(i:i+lmmaxi-1)
25  i=i+lmmaxi
26  end do
27 end if
28 do ir=nri+1,nr
29  cfmt(i:i+lmmaxo-1)=wr(ir)*zfmt(i:i+lmmaxo-1)
30  i=i+lmmaxo
31 end do
32 end subroutine
33 
integer lmmaxo
Definition: modmain.f90:205
integer lmmaxi
Definition: modmain.f90:209
pure subroutine zcfmtwr(nr, nri, wr, zfmt, cfmt)
Definition: zcfmtwr.f90:7
integer lmaxi
Definition: modmain.f90:207