mirror of https://gitlab.com/QEF/q-e.git
32 lines
904 B
Fortran
32 lines
904 B
Fortran
|
|
! Copyright (C) 2001 PWSCF group
|
|
! This file is distributed under the terms of the
|
|
! GNU General Public License. See the file `License'
|
|
! in the root directory of the present distribution,
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
!
|
|
!
|
|
!-----------------------------------------------------------------------
|
|
subroutine allocate_locpot
|
|
!-----------------------------------------------------------------------
|
|
!
|
|
! dynamical allocation of arrays:
|
|
! local potential for each kind of atom, structure factor
|
|
!
|
|
USE ions_base, ONLY : nat, ntyp => nsp
|
|
USE vlocal, ONLY : vloc, strf
|
|
USE gvect, ONLY : eigts1, eigts2, eigts3, nr1, nr2, nr3, ngm, ngl
|
|
!
|
|
implicit none
|
|
!
|
|
allocate (vloc( ngl, ntyp))
|
|
allocate (strf( ngm, ntyp))
|
|
|
|
allocate( eigts1(-nr1:nr1,nat) )
|
|
allocate( eigts2(-nr2:nr2,nat) )
|
|
allocate( eigts3(-nr3:nr3,nat) )
|
|
|
|
return
|
|
end subroutine allocate_locpot
|
|
|