bug fix; nonsquare rap (#581)

This PR fixes a corner case of the RAP routine for RAP matrix that is globally square but not locally.
This commit is contained in:
Ruipeng Li 2022-03-03 21:26:17 -08:00 committed by GitHub
parent 04af9a4cd9
commit ebd6eb88c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,8 @@ hypre_BoomerAMGBuildCoarseOperatorKT( hypre_ParCSRMatrix *RT,
num_nz_cols_A = num_cols_diag_A + num_cols_offd_A;
n_coarse_RT = hypre_ParCSRMatrixGlobalNumCols(RT);
if (n_coarse != n_coarse_RT)
if (n_coarse != n_coarse_RT || num_cols_diag_RT != num_cols_diag_P)
{
square = 0;
}