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

Example 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

Note#

PetscSFRegister() may be called multiple times to add several user-defined implementations.

See Also#

PetscSF, PetscSFType, 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