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
6subroutine writegamma(gq)
7use modmain
8use modphonon
9implicit none
10! arguments
11real(8), intent(in) :: gq(nbph,nqpt)
12! local variables
13integer iq,i
14open(50,file='GAMMAQ.OUT',form='FORMATTED',action='WRITE')
15write(50,*)
16write(50,'(I4," : total number of atoms")') natmtot
17write(50,'(I6," : number of q-points")') nqpt
18write(50,*)
19do 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,*)
27end do
28close(50)
29write(*,*)
30write(*,'("Info(writegamma):")')
31write(*,'(" wrote phonon linewidths for all q-points to GAMMAQ.OUT")')
32end subroutine
33
real(8), dimension(:,:), allocatable vqc
Definition modmain.f90:547
integer natmtot
Definition modmain.f90:40
real(8), dimension(:,:), allocatable vql
Definition modmain.f90:545
subroutine writegamma(gq)
Definition writegamma.f90:7