PETSc version 3.15.5
PetscSFRegister
Adds an implementation of the PetscSF communication protocol. 
Synopsis
#include "petscsf.h"  
PetscErrorCode  PetscSFRegister(const char name[],PetscErrorCode (*create)(PetscSF))
Not collective
Input Parameters
|  | name | - name of a new user-defined implementation | 
|  | create | - routine to create method context | 
Notes
PetscSFRegister() may be called multiple times to add several user-defined implementations.
Sample usage
   PetscSFRegister("my_impl",MyImplCreate);
Then, this implementation can be chosen with the procedural interface via
    PetscSFSetType(sf,"my_impl")
or at runtime via the option
    -sf_type my_impl
See Also
 PetscSFRegisterAll(), PetscSFInitializePackage()
Level
advanced
Location
src/vec/is/sf/interface/sfregi.c
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages