Skip to content

Commit

Permalink
Fix error propagation and printout
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Aug 22, 2020
1 parent 444cb76 commit 82183f6
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 121 deletions.
6 changes: 2 additions & 4 deletions src/energy_corrections.F
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,7 @@ SUBROUTINE ec_diag_solver(qs_env, matrix_ks, matrix_s, matrix_p, matrix_w)

CHARACTER(LEN=*), PARAMETER :: routineN = 'ec_diag_solver'

INTEGER :: handle, info, ispin, nmo(2), nsize, &
nspins
INTEGER :: handle, ispin, nmo(2), nsize, nspins
REAL(KIND=dp) :: eps_filter, focc(2)
REAL(KIND=dp), ALLOCATABLE, DIMENSION(:) :: eigenvalues
TYPE(cp_blacs_env_type), POINTER :: blacs_env
Expand Down Expand Up @@ -1384,8 +1383,7 @@ SUBROUTINE ec_diag_solver(qs_env, matrix_ks, matrix_s, matrix_p, matrix_w)
0.0_dp, buf1_dbcsr, filter_eps=eps_filter)
! copy to fm format
CALL copy_dbcsr_to_fm(buf1_dbcsr, fm_ks)
CALL choose_eigv_solver(fm_ks, fm_mo, eigenvalues, info)
CPASSERT(info == 0)
CALL choose_eigv_solver(fm_ks, fm_mo, eigenvalues)
! back transform of mos c = Z(T)*c
CALL copy_fm_to_dbcsr(fm_mo, buf1_dbcsr)
CALL dbcsr_multiply("N", "N", 1.0_dp, ortho_dbcsr, buf1_dbcsr, &
Expand Down

0 comments on commit 82183f6

Please sign in to comment.