The Elk Code
 
Loading...
Searching...
No Matches
dengyeph.f90
Go to the documentation of this file.
1
2! Copyright (C) 2020 Chung-Yu Wang, J. K. Dewhurst, S. Sharma and
3! E. K. U. Gross. This file is distributed under the terms of the GNU General
4! Public License. See the file COPYING for license details.
5
6subroutine dengyeph
7use modmain
8use modphonon
9use modbog
10implicit none
11! local variables
12integer ik,iq,i
13real(8) w
14! change in electron energy per unit cell
15dengye=0.d0
16do ik=1,nkpt
17 w=wkpt(ik)
18 do i=1,nstsv
19 dengye=dengye+w*abs((evalsv(i,ik)-efermi)*dble(dvv(i,i,ik)))
20 end do
21end do
23! change in phonon energy per unit cell
24dengyph=0.d0
25do iq=1,nqpt
26 w=wqpt(iq)
27 do i=1,nbph
28 dengyph=dengyph+w*abs(wphq(i,iq)*dble(dxx(i,i,iq)))
29 end do
30end do
31! sum of both
33end subroutine
34
subroutine dengyeph
Definition dengyeph.f90:7
complex(8), dimension(:,:,:), pointer, contiguous dvv
Definition modbog.f90:25
complex(8), dimension(:,:,:), pointer, contiguous dxx
Definition modbog.f90:43
real(8), dimension(:), allocatable wkpt
Definition modmain.f90:475
real(8) efermi
Definition modmain.f90:904
integer nqpt
Definition modmain.f90:525
integer nkpt
Definition modmain.f90:461
real(8), dimension(:), allocatable wqpt
Definition modmain.f90:549
integer nstsv
Definition modmain.f90:886
real(8) occmax
Definition modmain.f90:898
real(8), dimension(:,:), allocatable evalsv
Definition modmain.f90:918
integer nbph
Definition modphonon.f90:13
real(8) dengye
real(8) dengy
real(8) dengyph
real(8), dimension(:,:), allocatable wphq
Definition modphonon.f90:31