The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine readalpha2f(w,a2f)
7use modmain
8implicit none
9! arguments
10real(8), intent(out) :: w(nwplot)
11real(8), intent(out) :: a2f(nwplot)
12! local variables
13integer iw,ios
14open(50,file='ALPHA2F.OUT',form='FORMATTED',action='READ',status='OLD', &
15 iostat=ios)
16if (ios /= 0) then
17 write(*,*)
18 write(*,'("Error(readalpha2f): error opening ALPHA2F.OUT")')
19 write(*,*)
20 stop
21end if
22do 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
31end do
32close(50)
33end subroutine
34
subroutine readalpha2f(w, a2f)