Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/bodirect.F90
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ SUBROUTINE BOEVECS
REAL(LATTEPREC), PARAMETER :: MAXSHIFT = ONE
REAL(LATTEPREC) :: EBAND, QMIXORIG
REAL(LATTEPREC) :: S, OCCLOGOCC_ELECTRONS, OCCLOGOCC_HOLES
#ifdef PROGRESSON
LOGICAL :: PROGRESSERROR
#endif

IF (EXISTERROR) RETURN

Expand All @@ -66,7 +69,15 @@ SUBROUTINE BOEVECS

#ifdef PROGRESSON

CALL PRG_GET_FLEVEL(EVALS,KBT,BNDFIL,BREAKTOL,CHEMPOT)
! PROGRESSERROR is kind 4, but LATTE's EXISTERROR is kind 1
! so use temporary variable
PROGRESSERROR = EXISTERROR
CALL PRG_GET_FLEVEL(EVALS,KBT,BNDFIL,BREAKTOL,CHEMPOT,PROGRESSERROR)
EXISTERROR = PROGRESSERROR
IF (EXISTERROR) THEN
CALL ERRORS("bodirect","PROGRESS Fermi level bisection search (PRG_GET_FLEVEL) not converged")
RETURN
ENDIF

#else

Expand Down