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

PetscSFRegister

Adds an implementation of the PetscSF communication protocol.

Synopsis

#include "petscsf.h"  
PetscErrorCode  PetscSFRegister(const char sname[],PetscErrorCode (*function)(PetscSF))
Not collective Many br

Input Parameters

name_impl - name of a new user-defined implementation Many br
routine_create - routine to create method context Many br

Notes

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

Sample usage

   PetscSFRegister("my_impl",MyImplCreate);
Many br

Then, this implementation can be chosen with the procedural interface via Many br

    PetscSFSetType(sf,"my_impl")
or at runtime via the option Many br
    -snes_type my_solver

Many br

Keywords

PetscSF, register

See Also

PetscSFRegisterAll(), PetscSFRegisterDestroy()

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