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:
castilla 2002-06-25 02:15:08 +00:00
parent 9293f196a7
commit 66826cd9d7

View File

@ -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];