MatMeshToCellGraphRegister#

Registers a mesh-to-cell-graph conversion routine.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatMeshToCellGraphRegister(const char sname[], PetscErrorCode (*function)(Mat, PetscInt, Mat *))

Not Collective, No Fortran Support

Input Parameters#

  • sname - name of the converter (for example MATMESHTOCELLGRAPHMETIS or MATMESHTOCELLGRAPHPARMETIS)

  • function - function pointer that performs the conversion

Example Usage#

   MatMeshToCellGraphRegister("metis", MatMeshToCellGraph_Metis);

Then, the converter can be selected at runtime via the option -mat_mesh_to_cell_graph_type metis

See Also#

Matrices, Mat, MatMeshToCellGraph(), MatMeshToCellGraphType, MatMeshToCellGraphRegisterAll()

Level#

developer

Location#

src/mat/graphops/partition/partition.c


Index of all MatGraphOperations routines
Table of Contents for all manual pages
Index of all manual pages