The Elk Code
Loading...
Searching...
No Matches
writegamma.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2008 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
subroutine
writegamma
(gq)
7
use
modmain
8
use
modphonon
9
implicit none
10
! arguments
11
real
(8),
intent(in)
:: gq(nbph,nqpt)
12
! local variables
13
integer
iq,i
14
open
(50,file=
'GAMMAQ.OUT'
,form=
'FORMATTED'
,action=
'WRITE'
)
15
write
(50,*)
16
write
(50,
'(I4," : total number of atoms")'
)
natmtot
17
write
(50,
'(I6," : number of q-points")'
) nqpt
18
write
(50,*)
19
do
iq=1,nqpt
20
write
(50,
'(I6," : q-point")'
) iq
21
write
(50,
'(3G18.10," : q-vector (lattice coordinates)")'
)
vql
(:,iq)
22
write
(50,
'(3G18.10," : q-vector (Cartesian coordinates)")'
)
vqc
(:,iq)
23
do
i=1,nbph
24
write
(50,
'(I4,G18.10)'
) i,gq(i,iq)
25
end do
26
write
(50,*)
27
end do
28
close
(50)
29
write
(*,*)
30
write
(*,
'("Info(writegamma):")'
)
31
write
(*,
'(" wrote phonon linewidths for all q-points to GAMMAQ.OUT")'
)
32
end subroutine
33
modmain
Definition
modmain.f90:6
modmain::vqc
real(8), dimension(:,:), allocatable vqc
Definition
modmain.f90:547
modmain::natmtot
integer natmtot
Definition
modmain.f90:40
modmain::vql
real(8), dimension(:,:), allocatable vql
Definition
modmain.f90:545
modphonon
Definition
modphonon.f90:6
writegamma
subroutine writegamma(gq)
Definition
writegamma.f90:7
writegamma.f90
Generated by
1.9.8