[petsc-users] matrix distribution

Jed Brown jedbrown at mcs.anl.gov
Sun Apr 28 16:24:49 CDT 2013


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/5e3d46d8/attachment.html>


More information about the petsc-users mailing list