Skip to content

Commit

Permalink
Fix intent of POINTER
Browse files Browse the repository at this point in the history
This intent leads to the pointer being deallocated on entrance, i.e. no data can be transferred and the pointer is deferred.
  • Loading branch information
Frederick Stein authored and fstein93 committed Sep 12, 2022
1 parent b201fcf commit 594a1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fm/cp_fm_diag_utils.F
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ SUBROUTINE cp_fm_redistribute_end(matrix, eigenvectors, eig, matrix_new, eigenve

TYPE(cp_fm_type), INTENT(INOUT) :: matrix, eigenvectors
REAL(KIND=dp), DIMENSION(:), INTENT(IN) :: eig
TYPE(cp_fm_type), POINTER, INTENT(OUT) :: matrix_new, eigenvectors_new
TYPE(cp_fm_type), POINTER :: matrix_new, eigenvectors_new

CHARACTER(len=*), PARAMETER :: routineN = 'cp_fm_redistribute_end'

Expand Down

0 comments on commit 594a1fd

Please sign in to comment.