The Elk Code
gengclg.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2017 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 subroutine gengclg
7 use modmain
8 implicit none
9 ! local variables
10 if (allocated(gclg)) deallocate(gclg)
11 allocate(gclg(ngvec))
12 gclg(1)=0.d0
13 gclg(2:ngvec)=fourpi/gc(2:ngvec)**2
14 end subroutine
15 
integer ngvec
Definition: modmain.f90:396
real(8), dimension(:), allocatable gclg
Definition: modmain.f90:424
real(8), dimension(:), allocatable gc
Definition: modmain.f90:422
real(8), parameter fourpi
Definition: modmain.f90:1232
subroutine gengclg
Definition: gengclg.f90:7