mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
fix integer overflow for large, very sparse matrices on few ranks
svn-origin-rev: 18332
This commit is contained in:
parent
6a0c3af035
commit
dcd8c0de6d
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ CONTAINS
|
|||
IF (INT(nrows_total, kind=int_8)*INT(ncols_total, kind=int_8) .LT. nze_total) &
|
||||
CPABORT("Total number of non-zero elements must not exceed total matrix size")
|
||||
|
||||
IF (nrows_local*ncols_total .LT. nze_local) &
|
||||
IF (INT(nrows_local, kind=int_8)*INT(ncols_total, kind=int_8) .LT. nze_local) &
|
||||
CPABORT("Local number of non-zero elements must not exceed local matrix size")
|
||||
|
||||
csr_mat%ncols_total = ncols_total
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue