The Elk Code
 
Loading...
Searching...
No Matches
readfermi.f90
Go to the documentation of this file.
1
2! Copyright (C) 2002-2005 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!BOP
7! !ROUTINE: readfermi
8! !INTERFACE:
9subroutine readfermi
10! !USES:
11use modmain
12! !DESCRIPTION:
13! Reads the Fermi energy from the file {\tt EFERMI.OUT}.
14!
15! !REVISION HISTORY:
16! Created March 2005 (JKD)
17!EOP
18!BOC
19implicit none
20! local variables
21integer ios
22open(50,file='EFERMI'//trim(filext),form='FORMATTED',action='READ', &
23 status='OLD',iostat=ios)
24if (ios /= 0) then
25 write(*,*)
26 write(*,'("Error(readfermi): error opening ",A)') 'EFERMI'//trim(filext)
27 write(*,*)
28 stop
29end if
30read(50,*,iostat=ios) efermi
31if (ios /= 0) then
32 write(*,*)
33 write(*,'("Error(readfermi): error reading Fermi energy from EFERMI.OUT")')
34 write(*,*)
35 stop
36end if
37close(50)
38end subroutine
39!EOC
40
real(8) efermi
Definition modmain.f90:904
character(256) filext
Definition modmain.f90:1300
subroutine readfermi
Definition readfermi.f90:10