Skip to content

Commit

Permalink
Fix IJMatrixGetValues (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynemitchell authored Oct 4, 2024
1 parent 773824c commit f6bb554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IJ_mv/IJMatrix_parcsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ hypre_IJMatrixGetValuesParCSR( hypre_IJMatrix *matrix,
}
else
{
indx = 0;
for (ii = 0; ii < nrows; ii++)
{
row = rows[ii];
Expand All @@ -559,7 +560,7 @@ hypre_IJMatrixGetValuesParCSR( hypre_IJMatrix *matrix,
{
continue;
}
indx = row_indexes[ii];
indx = (row_indexes) ? row_indexes[ii] : indx;
if (row >= row_partitioning[0] && row < row_partitioning[1])
{
row_local = (HYPRE_Int)(row - row_partitioning[0]);
Expand Down

0 comments on commit f6bb554

Please sign in to comment.