Skip to content

Commit

Permalink
fm: Fix uninitialized info in choose_eigv_solver
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jul 14, 2023
1 parent 35c8065 commit b8a1131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fm/cp_fm_diag.F
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ SUBROUTINE choose_eigv_solver(matrix, eigenvectors, eigenvalues, info)
! Sample peak memory
CALL m_memory()

IF (PRESENT(info)) info = 0 ! Default for solvers that do not return an info.

IF (diag_type == FM_DIAG_TYPE_SCALAPACK) THEN
CALL cp_fm_syevd(matrix, eigenvectors, eigenvalues, info)

Expand Down

0 comments on commit b8a1131

Please sign in to comment.