fixed bugzilla bug#318. The routine handles wrong input data now correctly.
Rows that are not in the partitioning are skipped and a warning is printed out.
This commit is contained in:
parent
0626eb63fc
commit
9d5f0de97e
@ -769,6 +769,13 @@ hypre_IJMatrixSetValuesParCSR( hypre_IJMatrix *matrix,
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("Warning!!! Row %d is not inside proc. %d's partitioning!\n",
|
||||||
|
row, my_id);
|
||||||
|
printf("Input data have been ignored!!\n");
|
||||||
|
indx += n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ierr;
|
return ierr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user