File: olplolo.f90

package info (click to toggle)
elkcode 10.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,672 kB
  • sloc: f90: 52,747; perl: 964; makefile: 352; sh: 296; python: 105; ansic: 67
file content (26 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

! Copyright (C) 2002-2005 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
! This file is distributed under the terms of the GNU General Public License.
! See the file COPYING for license details.

pure subroutine olplolo(is,ias,ngp,ld,o)
use modmain
implicit none
! arguments
integer, intent(in) :: is,ias,ngp,ld
complex(8), intent(out) :: o(ld,*)
! local variables
integer ilo,jlo,l,lm,i,j
do jlo=1,nlorb(is)
  l=lorbl(jlo,is)
  do ilo=1,jlo
    if (lorbl(ilo,is) /= l) cycle
    do lm=l**2+1,(l+1)**2
      i=ngp+idxlo(lm,ilo,ias)
      j=ngp+idxlo(lm,jlo,ias)
      o(i,j)=ololo(ilo,jlo,ias)
    end do
  end do
end do
end subroutine