added the calculation of the nonzero rows of diag
and offd (hypre_CSRMatrices) using hypre_CSRMatrixSetRownnz almost at the end of the function hypre_IJMatrixAssembleParCSR
This commit is contained in:
parent
9293f196a7
commit
66826cd9d7
@ -1278,6 +1278,11 @@ hypre_IJMatrixAssembleParCSR(hypre_IJMatrix *matrix)
|
||||
|
||||
offd_j = hypre_CSRMatrixJ(offd);
|
||||
}
|
||||
|
||||
/* generate the nonzero rows inside offd and diag by calling */
|
||||
|
||||
hypre_CSRMatrixSetRownnz(diag);
|
||||
hypre_CSRMatrixSetRownnz(offd);
|
||||
|
||||
/* generate col_map_offd */
|
||||
nnz_offd = offd_i[num_rows];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user