Skip to content

Commit

Permalink
Fix printing of estimate gap
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Sep 9, 2023
1 parent b0b2855 commit f348fdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Fortran/EigenBoundsModule.F90
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ SUBROUTINE PowerBounds(this, max_value, solver_parameters_in)
IF (CheckConverged(params%monitor, params%be_verbose)) THEN
!! Make sure the two estimates vaguely agree
IF(ABS(aitken_values(3) - ritz_values(3)) .LT. &
& params%monitor%loose_cutoff) THEN
& params%monitor%loose_cutoff) THEN
EXIT
END IF
END IF
Expand Down
3 changes: 3 additions & 0 deletions Source/Fortran/EigenSolversModule.F90
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ SUBROUTINE EstimateGap(H, K, chemical_potential, gap, solver_parameters_in)
!! back to the Gershgorin Bounds
CALL MatrixMultiply(K, H, KH, &
& threshold_in = params%threshold, memory_pool_in = pool)
CALL WriteElement("Estimate Minimum")
CALL EnterSubLog
CALL PowerBounds(KH, e_min, params)
CALL ExitSubLog
IF (e_min .GT. 0_NTREAL) THEN
CALL WriteComment("Switching to GershgorinBounds")
CALL GershgorinBounds(H, e_min, e_max)
Expand Down

0 comments on commit f348fdf

Please sign in to comment.