The Elk Code
olpalo.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2002-2005 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
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 olpalo(is,ias,ngp,apwalm,ld,o)
7 use modmain
8 implicit none
9 ! arguments
10 integer, intent(in) :: is,ias,ngp
11 complex(8), intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw)
12 integer, intent(in) :: ld
13 complex(8), intent(inout) :: o(ld,*)
14 ! local variables
15 integer ilo,io,l,lm,j
16 real(8) t1
17 do ilo=1,nlorb(is)
18  l=lorbl(ilo,is)
19  do lm=l**2+1,(l+1)**2
20  j=ngp+idxlo(lm,ilo,ias)
21  do io=1,apword(l,is)
22  t1=oalo(io,ilo,ias)
23  o(1:ngp,j)=o(1:ngp,j)+t1*conjg(apwalm(1:ngp,io,lm))
24  end do
25  end do
26 end do
27 end subroutine
28 
integer, dimension(maxspecies) nlorb
Definition: modmain.f90:786
integer, dimension(:,:,:), allocatable idxlo
Definition: modmain.f90:855
real(8), dimension(:,:,:), allocatable oalo
Definition: modmain.f90:857
integer lmmaxapw
Definition: modmain.f90:199
integer ngkmax
Definition: modmain.f90:499
pure subroutine olpalo(is, ias, ngp, apwalm, ld, o)
Definition: olpalo.f90:7
integer, dimension(0:maxlapw, maxspecies) apword
Definition: modmain.f90:758
integer apwordmax
Definition: modmain.f90:760
integer, dimension(maxlorb, maxspecies) lorbl
Definition: modmain.f90:796