petsc-3.7.7 2017-09-25
Report Typos and Errors

# PetscPartitionerRegister

Adds a new PetscPartitioner implementation

### Synopsis

    #include "petscdmplex.h"
    PetscErrorCode PetscPartitionerRegister(const char sname[], PetscErrorCode (*function)(PetscPartitioner))

Not Collective

### Input Parameters

| name | - The name of a new user-defined creation routine
| create_func | - The creation routine itself

### Notes

PetscPartitionerRegister() may be called multiple times to add several user-defined PetscPartitioners

### Sample usage

        PetscPartitionerRegister("my_part", MyPetscPartitionerCreate);

Then, your PetscPartitioner type can be chosen with the procedural interface via

        PetscPartitionerCreate(MPI_Comm, PetscPartitioner *);
        PetscPartitionerSetType(PetscPartitioner, "my_part");

or at runtime via the option

        -petscpartitioner_type my_part

### Keywords

PetscPartitioner, register

### See Also

PetscPartitionerRegisterAll(), PetscPartitionerRegisterDestroy()

Level:advanced
Location:src/dm/impls/plex/plexpartition.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages