The Elk Code
 
Loading...
Searching...
No Matches
olplolo.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 olplolo(is,ias,ngp,ld,o)
7use modmain
8implicit none
9! arguments
10integer, intent(in) :: is,ias,ngp,ld
11complex(8), intent(out) :: o(ld,*)
12! local variables
13integer ilo,jlo,l,lm,i,j
14do ilo=1,nlorb(is)
15 l=lorbl(ilo,is)
16 do jlo=1,nlorb(is)
17 if (lorbl(jlo,is) == l) then
18 do lm=l**2+1,(l+1)**2
19 i=ngp+idxlo(lm,ilo,ias)
20 j=ngp+idxlo(lm,jlo,ias)
21 if (i <= j) o(i,j)=ololo(ilo,jlo,ias)
22 end do
23 end if
24 end do
25end do
26end subroutine
27
integer, dimension(:,:,:), allocatable idxlo
Definition modmain.f90:850
integer, dimension(maxspecies) nlorb
Definition modmain.f90:786
real(8), dimension(:,:,:), allocatable ololo
Definition modmain.f90:854
integer, dimension(maxlorb, maxspecies) lorbl
Definition modmain.f90:796
pure subroutine olplolo(is, ias, ngp, ld, o)
Definition olplolo.f90:7