Bug fix in prefix sum for OpenMP IJ interface (#602)

This fixes a bug found in issue #522 for the prefix sum openmp code in IJ.
This commit is contained in:
Rob Falgout 2022-03-16 10:56:09 -07:00 committed by GitHub
parent 92faac9748
commit fa43ea82e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ hypre_PrefixSumInt(HYPRE_Int nvals,
{
HYPRE_Int i, n = hypre_min((j + bsize), nvals);
sums[0] = 0;
sums[j] = 0;
for (i = j + 1; i < n; i++)
{
sums[i] = sums[i - 1] + vals[i - 1];