mirror of https://gitlab.com/QEF/q-e.git
For non self-consistent computations it is possible to set fixed occupations without specifying a tot_magnetization target (this is not allowed for self-consistent calculations). In this case the program was printing a wrong HOMO energy
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13029 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
e3c511cb60
commit
4f5bfdea3a
|
@ -311,10 +311,10 @@ MODULE pw_restart_new
|
|||
!
|
||||
IF (TRIM(input_parameters_occupations) == 'fixed') THEN
|
||||
occupations_are_fixed = .TRUE.
|
||||
IF ( nspin == 1 ) THEN
|
||||
h_band = NINT ( nelec/2.d0)
|
||||
ELSE
|
||||
IF ( noncolin ) THEN
|
||||
h_band = NINT ( nelec )
|
||||
ELSE
|
||||
h_band = NINT ( nelec/2.d0 )
|
||||
END IF
|
||||
h_energy =MAXVAL (et(h_band, 1:nkstot))
|
||||
ELSE
|
||||
|
|
Loading…
Reference in New Issue