distribution of matrix and vector

Barry Smith bsmith at mcs.anl.gov
Sun Feb 15 17:13:51 CST 2009


    Yes.  When you do not provide the local sizes then  
PetscSplitOwnership() is used to chose a value, thus it matches for  
different vectors and matrices.

     Barry

On Feb 15, 2009, at 5:07 PM, Yixun Liu wrote:

> Hi,
> VecSetSizes(vec, PETSC_DECIDE, n);
> MatSetSizes(mat, PETSC_DECIDE, PETSC_DECIDE, n,n);
>
> If the matrix is square can I conclude that the vec and mat have the
> same distribution.
>
> Thanks
> Yixun
>



More information about the petsc-users mailing list