xref: /petsc/src/binding/petsc4py/src/petsc4py/PETSc/petscmatpartitioning.pxi (revision 552edb6364df478b294b3111f33a8f37ca096b20)
1cdef extern from * nogil:
2
3    ctypedef const char* PetscMatPartitioningType "MatPartitioningType"
4    PetscMatPartitioningType MATPARTITIONINGCURRENT
5    PetscMatPartitioningType MATPARTITIONINGAVERAGE
6    PetscMatPartitioningType MATPARTITIONINGSQUARE
7    PetscMatPartitioningType MATPARTITIONINGPARMETIS
8    PetscMatPartitioningType MATPARTITIONINGCHACO
9    PetscMatPartitioningType MATPARTITIONINGPARTY
10    PetscMatPartitioningType MATPARTITIONINGPTSCOTCH
11    PetscMatPartitioningType MATPARTITIONINGHIERARCH
12
13    PetscErrorCode MatPartitioningCreate(MPI_Comm, PetscMatPartitioning*)
14    PetscErrorCode MatPartitioningDestroy(PetscMatPartitioning*)
15    PetscErrorCode MatPartitioningView(PetscMatPartitioning, PetscViewer)
16
17    PetscErrorCode MatPartitioningSetType(PetscMatPartitioning, PetscMatPartitioningType)
18    PetscErrorCode MatPartitioningGetType(PetscMatPartitioning, PetscMatPartitioningType*)
19    PetscErrorCode MatPartitioningSetFromOptions(PetscMatPartitioning)
20
21    PetscErrorCode MatPartitioningSetAdjacency(PetscMatPartitioning, PetscMat)
22    PetscErrorCode MatPartitioningApply(PetscMatPartitioning, PetscIS*)
23