about MatGetOwnershipRange

Yujie recrusader at gmail.com
Thu Jan 1 19:45:36 CST 2009


thank you very much, Barry

On Thu, Jan 1, 2009 at 4:59 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>  For all Mats that PETSc provides including MatMFFD and MatShell() the
> assumption is satisfied.
>
>   Barry
>
>
> On Jan 1, 2009, at 6:45 PM, Yujie wrote:
>
>  I got a submatrix B from A in parallel mode. Because the rows numbers of B
>> in some processors of the cluster become 0, I want to use
>> MatGetOwnershipRange() to get the range in each processor. I have checked
>> this function, the description is as folllows:
>> "
>> MatGetOwnershipRange
>> Returns the range of matrix rows owned by this processor, assuming that
>> the matrix is laid out with the first n1 rows on the first processor, the
>> next n2 rows on the second, etc. For certain parallel layouts this range may
>> not be well defined.
>> "
>> There is an assumption in this function, I am wondering whether I can use
>> this function here. if not, how to do it? thanks a lot.
>>
>> Yujie
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090101/25c2ca6b/attachment.htm>


More information about the petsc-users mailing list