The Elk Code
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 
integer lmmaxo
Definition: modmain.f90:203
integer lmaxo
Definition: modmain.f90:201
pure subroutine genylmv(t4pil, lmax, v, ylm)
Definition: genylmv.f90:10
real(8), dimension(:,:), allocatable vgc
Definition: modmain.f90:420
complex(8), dimension(:,:), allocatable ylmg
Definition: modmain.f90:428
integer ngvec
Definition: modmain.f90:396
subroutine genylmg
Definition: genylmg.f90:10