Calculates the checksum of an index.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(inout) | :: | matrix |
matrix for which to make canonical index |
||
integer, | intent(out) | :: | checksum |
SUBROUTINE dbcsr_index_checksum(matrix, checksum) !! Calculates the checksum of an index. TYPE(dbcsr_type), INTENT(INOUT) :: matrix !! matrix for which to make canonical index INTEGER, INTENT(OUT) :: checksum CHARACTER(len=*), PARAMETER :: routineN = 'dbcsr_index_checksum' INTEGER :: error_handle ! --------------------------------------------------------------------------- CALL timeset(routineN, error_handle) ! checksum = joaat_hash((/joaat_hash(matrix%row_p), & joaat_hash(matrix%col_i), & joaat_hash(matrix%blk_p)/)) ! CALL timestop(error_handle) END SUBROUTINE dbcsr_index_checksum