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:
parent
04af9a4cd9
commit
ebd6eb88c3
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user