Fixed a bug setting pstart to my_id before my_id was initialized.
This commit is contained in:
parent
46488e8cbc
commit
85897873de
@ -329,14 +329,14 @@ HYPRE_Int hypre_IJMatrixGetRowCountsParCSR( hypre_IJMatrix *matrix,
|
|||||||
HYPRE_Int i, my_id, pstart;
|
HYPRE_Int i, my_id, pstart;
|
||||||
HYPRE_Int print_level = hypre_IJMatrixPrintLevel(matrix);
|
HYPRE_Int print_level = hypre_IJMatrixPrintLevel(matrix);
|
||||||
|
|
||||||
|
hypre_MPI_Comm_rank(comm,&my_id);
|
||||||
|
|
||||||
#ifdef HYPRE_NO_GLOBAL_PARTITION
|
#ifdef HYPRE_NO_GLOBAL_PARTITION
|
||||||
pstart = 0;
|
pstart = 0;
|
||||||
#else
|
#else
|
||||||
pstart = my_id;
|
pstart = my_id;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
hypre_MPI_Comm_rank(comm,&my_id);
|
|
||||||
|
|
||||||
for (i=0; i < nrows; i++)
|
for (i=0; i < nrows; i++)
|
||||||
{
|
{
|
||||||
row_index = rows[i];
|
row_index = rows[i];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user