The Elk Code
 
Loading...
Searching...
No Matches
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
6pure subroutine olpalo(is,ias,ngp,apwalm,ld,o)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: is,ias,ngp
11complex(8), intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw)
12integer, intent(in) :: ld
13complex(8), intent(inout) :: o(ld,*)
14! local variables
15integer ilo,io,l,lm,j
16real(8) t1
17do 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
26end do
27end subroutine
28
integer, dimension(:,:,:), allocatable idxlo
Definition modmain.f90:850
integer, dimension(0:maxlapw, maxspecies) apword
Definition modmain.f90:758
integer lmmaxapw
Definition modmain.f90:199
integer apwordmax
Definition modmain.f90:760
integer ngkmax
Definition modmain.f90:499
integer, dimension(maxspecies) nlorb
Definition modmain.f90:786
real(8), dimension(:,:,:), allocatable oalo
Definition modmain.f90:852
integer, dimension(maxlorb, maxspecies) lorbl
Definition modmain.f90:796
pure subroutine olpalo(is, ias, ngp, apwalm, ld, o)
Definition olpalo.f90:7