[petsc-users] matrix distribution

Panruo Wu armiuswu at gmail.com
Sun Apr 28 16:27:00 CDT 2013


I get it. Thanks!

Regards,
Panruo


On Sun, Apr 28, 2013 at 2:24 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Order your unknowns appropriately and set the local sizes to match your
> distribution.
> On Apr 28, 2013 4:16 PM, "Panruo Wu" <armiuswu at gmail.com> wrote:
>
>> Thanks Jed!
>>
>> I understand that MatCreateMPIAdj  takes  adjacency information
>> and partition the matrix for me; what if I don't want it to partition
>> for me, that I already have a particular partitioning?
>>
>> I guess my question is, how do I tell Petsc to use my own partitioning?
>>
>> Thanks,
>> Panruo
>>
>>
>> On Sun, Apr 28, 2013 at 5:26 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>>
>>> Panruo Wu <armiuswu at gmail.com> writes:
>>>
>>> > Hello,
>>> >
>>> > I have a question about the matrix distribution in Petsc.
>>> > Can I define the distribution pattern as the output
>>> > of graph partition software like METIS? Pointers
>>> > to documentation/code about matrix distribution in Petsc
>>> > would be very helpful.
>>>
>>>
>>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateMPIAdj.html
>>>
>>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/MatOrderings/MatPartitioningCreate.html
>>>
>>> After applying the partitioning, relabel your mesh (or whatever is the
>>> source of your problem), migrate that data, and create a new matrix
>>> using the new distribution.
>>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130428/76f11487/attachment.html>


More information about the petsc-users mailing list