petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscPartitionerRegister

Adds a new PetscPartitioner implementation

Synopsis

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

Input Parameters

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

Notes

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

Sample usage

    PetscPartitionerRegister("my_part", MyPetscPartitionerCreate);
Many br

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

    PetscPartitionerCreate(MPI_Comm, PetscPartitioner *);
    PetscPartitionerSetType(PetscPartitioner, "my_part");
Many bror at runtime via the option Many br
    -petscpartitioner_type my_part
Many br

Many br

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