Skip to content

Commit

Permalink
fm: Fix error message when DSYEVD failes
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed May 10, 2021
1 parent 3bb007a commit 167df3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fm/cp_fm_diag.F
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ SUBROUTINE cp_fm_syevd(matrix, eigenvectors, eigenvalues, info)
CALL dsyevd('V', 'U', n, m(1, 1), nl, eig(1), work(1), lwork, iwork(1), liwork, myinfo)

IF (myinfo /= 0) THEN
WRITE (message, "(A,I0,A)") "ERROR in DSYEVD: Matrix diagonalization failed (INFO = ", myinfo, ")"
IF (PRESENT(info)) THEN
WRITE (message, "(A,I0,A)") "ERROR in DSYEVD: Matrix diagonalization failed (INFO = ", myinfo, ")"
CPWARN(TRIM(message))
ELSE
CPABORT(TRIM(message))
Expand Down

0 comments on commit 167df3c

Please sign in to comment.