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

PetscFVRegister

Adds a new PetscFV implementation

Synopsis

#include "petscfv.h" 
PetscErrorCode PetscFVRegister(const char sname[], PetscErrorCode (*function)(PetscFV))
Not Collective Many br

Input Parameters

name - The name of a new user-defined creation routine Many br
create_func - The creation routine itself Many br

Notes

PetscFVRegister() may be called multiple times to add several user-defined PetscFVs Many br

Sample usage

    PetscFVRegister("my_fv", MyPetscFVCreate);
Many br

Then, your PetscFV type can be chosen with the procedural interface via Many br

    PetscFVCreate(MPI_Comm, PetscFV *);
    PetscFVSetType(PetscFV, "my_fv");
Many bror at runtime via the option Many br
    -petscfv_type my_fv
Many br

Many br

Keywords

PetscFV, register

See Also

PetscFVRegisterAll(), PetscFVRegisterDestroy()

Level:advanced
Location:
src/dm/dt/interface/dtfv.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages