The Elk Code
 
Loading...
Searching...
No Matches
zfcmtwr.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 zfcmtwr(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
15real(8) t1
16i=1
17if (lmaxi == 1) then
18 do ir=1,nri
19 zfmt(i:i+3)=(pi*wr(ir))*zfmt(i:i+3)
20 i=i+4
21 end do
22else
23 t1=fourpi/dble(lmmaxi)
24 n=lmmaxi-1
25 do ir=1,nri
26 zfmt(i:i+n)=(t1*wr(ir))*zfmt(i:i+n)
27 i=i+lmmaxi
28 end do
29end if
30t1=fourpi/dble(lmmaxo)
31n=lmmaxo-1
32do ir=nri+1,nr
33 zfmt(i:i+n)=(t1*wr(ir))*zfmt(i:i+n)
34 i=i+lmmaxo
35end do
36end subroutine
37
real(8), parameter pi
Definition modmain.f90:1229
integer lmmaxi
Definition modmain.f90:207
real(8), parameter fourpi
Definition modmain.f90:1231
integer lmaxi
Definition modmain.f90:205
integer lmmaxo
Definition modmain.f90:203
pure subroutine zfcmtwr(nr, nri, wr, zfmt)
Definition zfcmtwr.f90:7