Need to read start/end indices as HYPRE_BigInt (#605)

This fixes an issue with the ParCSRMatrixRead when compiled with mixed-int enabled.
This commit is contained in:
Paul T. Bauman 2022-05-24 15:32:56 -05:00 committed by GitHub
parent aa0446d720
commit 565bbe0511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -490,7 +490,7 @@ hypre_ParCSRMatrixRead( MPI_Comm comm,
hypre_fscanf(fp, "%b", &global_num_cols); hypre_fscanf(fp, "%b", &global_num_cols);
hypre_fscanf(fp, "%d", &num_cols_offd); hypre_fscanf(fp, "%d", &num_cols_offd);
/* the bgl input file should only contain the EXACT range for local processor */ /* the bgl input file should only contain the EXACT range for local processor */
hypre_fscanf(fp, "%d %d %d %d", &row_s, &row_e, &col_s, &col_e); hypre_fscanf(fp, "%b %b %b %b", &row_s, &row_e, &col_s, &col_e);
row_starts[0] = row_s; row_starts[0] = row_s;
row_starts[1] = row_e; row_starts[1] = row_e;
col_starts[0] = col_s; col_starts[0] = col_s;