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:
9subroutine genylmg
10! !USES:
11use 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
21implicit none
22! local variables
23integer ig
24! allocate global G-vector spherical harmonic array
25if (allocated(ylmg)) deallocate(ylmg)
26allocate(ylmg(lmmaxo,ngvec))
27do ig=1,ngvec
28 call genylmv(.true.,lmaxo,vgc(:,ig),ylmg(:,ig))
29end do
30end subroutine
31!EOC
32
subroutine genylmg
Definition genylmg.f90:10
pure subroutine genylmv(t4pil, lmax, v, ylm)
Definition genylmv.f90:10
integer ngvec
Definition modmain.f90:396
integer lmaxo
Definition modmain.f90:201
real(8), dimension(:,:), allocatable vgc
Definition modmain.f90:420
integer lmmaxo
Definition modmain.f90:203
complex(8), dimension(:,:), allocatable ylmg
Definition modmain.f90:428