Skip to content

Commit

Permalink
index_ops: avoid allocating 0-size buffers and init them with negativ…
Browse files Browse the repository at this point in the history
…e ranges for nblks=0 case
  • Loading branch information
dev-zero committed Sep 7, 2023
1 parent ba59d8c commit 3afed6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/block/dbcsr_index_operations.F
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ SUBROUTINE dbcsr_sort_indices(n, row_i, col_i, blk_p, blk_d)

! ---------------------------------------------------------------------------

IF (n .LE. 0) RETURN
IF (SIZE(row_i) .EQ. 0) RETURN

CALL timeset(routineN, error_handle)
Expand Down

0 comments on commit 3afed6e

Please sign in to comment.