The Elk Code
readalpha2f.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2011 A. Sanna and E. K. U. Gross
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 readalpha2f(w,a2f)
7 use modmain
8 implicit none
9 ! arguments
10 real(8), intent(out) :: w(nwplot)
11 real(8), intent(out) :: a2f(nwplot)
12 ! local variables
13 integer iw,ios
14 open(50,file='ALPHA2F.OUT',form='FORMATTED',action='READ',status='OLD', &
15  iostat=ios)
16 if (ios /= 0) then
17  write(*,*)
18  write(*,'("Error(readalpha2f): error opening ALPHA2F.OUT")')
19  write(*,*)
20  stop
21 end if
22 do iw=1,nwplot
23  read(50,*,iostat=ios) w(iw),a2f(iw)
24  if (ios /= 0) then
25  write(*,*)
26  write(*,'("Error(readalpha2f): error reading from ALPHA2F.OUT")')
27  write(*,'(" for frequency ",I6)') iw
28  write(*,*)
29  stop
30  end if
31 end do
32 close(50)
33 end subroutine
34 
subroutine readalpha2f(w, a2f)
Definition: readalpha2f.f90:7