The Elk Code
 
Loading...
Searching...
No Matches
putephmat.f90
Go to the documentation of this file.
1
2! Copyright (C) 2019 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 putephmat(iq,ik,ephmat)
7use modmain
8use modphonon
9implicit none
10! arguments
11integer, intent(in) :: iq,ik
12complex(8), intent(in) :: ephmat(nstsv,nstsv,nbph)
13! local variables
14integer recl,n
15! determine the record length
16inquire(iolength=recl) vql(:,iq),vkl(:,ik),nstsv,nbph,ephmat
17! record number
18n=(iq-1)*nkptnr+ik
19!$OMP CRITICAL(u240)
20open(240,file='EPHMAT.OUT',form='UNFORMATTED',access='DIRECT',recl=recl)
21write(240,rec=n) vql(:,iq),vkl(:,ik),nstsv,nbph,ephmat
22close(240)
23!$OMP END CRITICAL(u240)
24end subroutine
25
integer nkptnr
Definition modmain.f90:463
real(8), dimension(:,:), allocatable vql
Definition modmain.f90:545
real(8), dimension(:,:), allocatable vkl
Definition modmain.f90:471
subroutine putephmat(iq, ik, ephmat)
Definition putephmat.f90:7