The Elk Code
Loading...
Searching...
No Matches
initph.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2024 J. K. Dewhurst and S. Sharma.
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
initph
7
use
modmain
8
use
modphonon
9
implicit none
10
! allocate global arrays
11
if
(
allocated
(
dynq
))
deallocate
(
dynq
)
12
allocate
(
dynq
(
nbph
,
nbph
,
nqpt
))
13
if
(
allocated
(
dynr
))
deallocate
(
dynr
)
14
allocate
(
dynr
(
nbph
,
nbph
,
nqptnr
))
15
if
(
allocated
(
wphq
))
deallocate
(
wphq
)
16
allocate
(
wphq
(
nbph
,
nqpt
))
17
! read in the dynamical matrices
18
call
readdyn
19
! apply the acoustic sum rule
20
call
sumrule
21
! if the non-analytic term is required then read in the Born effective charge
22
! tensor for each atom as well as the static dielectric tensor
23
if
(
allocated
(
bec
))
deallocate
(
bec
)
24
if
(
tphnat
)
then
25
allocate
(
bec
(3,3,
natmtot
))
26
call
readbec
27
call
readepsw0
28
end if
29
! Fourier transform the dynamical matrices to real-space
30
call
dynqtor
(
dynq
,
dynr
)
31
end subroutine
32
dynqtor
subroutine dynqtor(dq, dr)
Definition
dynqtor.f90:7
initph
subroutine initph
Definition
initph.f90:7
modmain
Definition
modmain.f90:6
modmain::nqptnr
integer nqptnr
Definition
modmain.f90:527
modmain::nqpt
integer nqpt
Definition
modmain.f90:525
modmain::natmtot
integer natmtot
Definition
modmain.f90:40
modphonon
Definition
modphonon.f90:6
modphonon::nbph
integer nbph
Definition
modphonon.f90:13
modphonon::dynr
real(8), dimension(:,:,:), allocatable dynr
Definition
modphonon.f90:29
modphonon::dynq
complex(8), dimension(:,:,:), allocatable dynq
Definition
modphonon.f90:27
modphonon::tphnat
logical tphnat
Definition
modphonon.f90:34
modphonon::wphq
real(8), dimension(:,:), allocatable wphq
Definition
modphonon.f90:31
modphonon::bec
real(8), dimension(:,:,:), allocatable bec
Definition
modphonon.f90:36
readbec
subroutine readbec
Definition
readbec.f90:7
readdyn
subroutine readdyn
Definition
readdyn.f90:7
readepsw0
subroutine readepsw0
Definition
readepsw0.f90:7
sumrule
subroutine sumrule
Definition
sumrule.f90:10
initph.f90
Generated by
1.9.8