MatAIJ is either MatSeqAIJ or MatMPIAIJ [depeding upon no of procs in the run].
So if you already have MatAIJ [which mostlikely is MatMPIAIJ for you] - why do you need to recreate it as MatMPIAIJ? Satish On Fri, 13 Feb 2009, 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 >
