The Elk Code
 
Loading...
Searching...
No Matches
olpaaq.f90
Go to the documentation of this file.
1
2! Copyright (C) 2013 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
6subroutine olpaaq(is,ngp,ngpq,apwalm,apwalmq,ld,oq)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: is,ngp,ngpq
11complex(8), intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw)
12complex(8), intent(in) :: apwalmq(ngkmax,apwordmax,lmmaxapw)
13integer, intent(in) :: ld
14complex(8), intent(inout) :: oq(*)
15! local variables
16integer io,l,lm,i
17! automatic arrays
18complex(8) a(lmoapw(is),ngpq),b(lmoapw(is),ngp)
19i=0
20do l=0,lmaxapw
21 do lm=l**2+1,(l+1)**2
22 do io=1,apword(l,is)
23 i=i+1
24 a(i,1:ngpq)=apwalmq(1:ngpq,io,lm)
25 b(i,1:ngp)=apwalm(1:ngp,io,lm)
26 end do
27 end do
28end do
29call zmctm(lmoapw(is),ngpq,ngp,a,b,ld,oq)
30end subroutine
31
integer, dimension(0:maxlapw, maxspecies) apword
Definition modmain.f90:758
integer lmaxapw
Definition modmain.f90:197
subroutine olpaaq(is, ngp, ngpq, apwalm, apwalmq, ld, oq)
Definition olpaaq.f90:7
subroutine zmctm(l, m, n, a, b, ld, c)
Definition zmctm.f90:7