> On 8 Jul 2015, at 12:53, Javier Quinteros <jav...@gfz-potsdam.de> wrote:
> 
> Signed PGP part
> Hi Matthew.
> Thanks for the answer. We've checked again and actually it is working
> with chaco. But we haven't found any example/way to use it with metis,
> that it's what we wanted.
> 
> I've seen that there is a new Partitioner class, but I could not find
> how to pass it to the DMPlex (in petsc4py).
> 
> Thanks in advance for any hint.

I think you do:

dm = PETSc.DMPlex().create()

part = dm.getPartitioner()

part.setType(part.Type.PARMETIS)

part.setUp()

now when you call dm.distribute() I think it will use the parmetis partitioner.

You can also pass the -petscpartitioner_type option to set things that way.

Lawrence

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to