<p>even if you can use the information from MatGetInfo(). However, you don&#39;t know d_nnz and o_nnz, right? Thanks.<br></p><p>Yujie</p><br><div class="gmail_quote">On Fri, Feb 13, 2009 at 9:37 AM, Randall Mackie <span dir="ltr">&lt;<a href="mailto:rlmackie862@gmail.com">rlmackie862@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yujie,<br>
<br>
This is explained in the manual on page 59, under Preallocation of Memory<br>
for Parallel AIJ Sparse Matrices.<br>
<br>
Randy<div><div class="Wj3C7c"><br>
<br>
<br>
Yujie wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
In MatCreateMPIAIJ() function, it needs d_nz, d_nnz[], o_nz, o_nnz[]. If one has a MATAIJ matrix, how to obtian this information? thanks a lot.<br>
<br>
PetscErrorCode PETSCMAT_DLLEXPORT MatCreateMPIAIJ(MPI_Comm comm,PetscInt m,PetscInt n,PetscInt M,PetscInt N,PetscInt d_nz,const PetscInt d_nnz[],PetscInt o_nz,const PetscInt o_nnz[],Mat *A)<br>
<br>
Regards,<br>
<br>
Yujie<br>
<br>
</blockquote>
</div></div></blockquote></div><br>