The Elk Code
Loading...
Searching...
No Matches
genylmg.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
!BOP
7
! !ROUTINE: genylmg
8
! !INTERFACE:
9
subroutine
genylmg
10
! !USES:
11
use
modmain
12
! !DESCRIPTION:
13
! Generates a set of spherical harmonics, $4\pi(-i)^l Y_{lm}(\hat{\bf G})$,
14
! with angular momenta up to {\tt lmaxo} for the set of ${\bf G}$-vectors.
15
! See the routine {\tt genylmv}.
16
!
17
! !REVISION HISTORY:
18
! Created June 2003 (JKD)
19
!EOP
20
!BOC
21
implicit none
22
! local variables
23
integer
ig
24
! allocate global G-vector spherical harmonic array
25
if
(
allocated
(
ylmg
))
deallocate
(
ylmg
)
26
allocate
(
ylmg
(
lmmaxo
,
ngvec
))
27
do
ig=1,
ngvec
28
call
genylmv
(.true.,
lmaxo
,
vgc
(:,ig),
ylmg
(:,ig))
29
end do
30
end subroutine
31
!EOC
32
genylmg
subroutine genylmg
Definition
genylmg.f90:10
genylmv
pure subroutine genylmv(t4pil, lmax, v, ylm)
Definition
genylmv.f90:10
modmain
Definition
modmain.f90:6
modmain::ngvec
integer ngvec
Definition
modmain.f90:396
modmain::lmaxo
integer lmaxo
Definition
modmain.f90:201
modmain::vgc
real(8), dimension(:,:), allocatable vgc
Definition
modmain.f90:420
modmain::lmmaxo
integer lmmaxo
Definition
modmain.f90:203
modmain::ylmg
complex(8), dimension(:,:), allocatable ylmg
Definition
modmain.f90:428
genylmg.f90
Generated by
1.9.8