PetscFERegister#

Adds a new PetscFEType

Synopsis#

#include "petscfe.h" 
PetscErrorCode PetscFERegister(const char sname[], PetscErrorCode (*function)(PetscFE))

Not Collective

Input Parameters#

  • sname - The name of a new user-defined creation routine

  • function - The creation routine

Sample usage#

    PetscFERegister("my_fe", MyPetscFECreate);

Then, your PetscFE type can be chosen with the procedural interface via

or at runtime via the option

    -petscfe_type my_fe

Note#

PetscFERegister() may be called multiple times to add several user-defined PetscFEs

See Also#

PetscFE, PetscFEType, PetscFERegisterAll(), PetscFERegisterDestroy()

Level#

advanced

Location#

src/dm/dt/fe/interface/fe.c


Edit on GitLab

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