how to get the MPIAIJ matrix information?

Yujie recrusader at gmail.com
Fri Feb 13 12:00:56 CST 2009


even if you can use the information from MatGetInfo(). However, you don't
know d_nnz and o_nnz, right? Thanks.

Yujie

On Fri, Feb 13, 2009 at 9:37 AM, Randall Mackie <rlmackie862 at gmail.com>wrote:

> Yujie,
>
> This is explained in the manual on page 59, under Preallocation of Memory
> for Parallel AIJ Sparse Matrices.
>
> Randy
>
>
> Yujie wrote:
>
>> Hi,
>>
>> 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.
>>
>> 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)
>>
>> Regards,
>>
>> Yujie
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090213/dd6a8852/attachment.htm>


More information about the petsc-users mailing list