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

CharacteristicRegister

Adds a solver to the method of characteristics package.

Synopsis

#include "petsccharacteristic.h" 
PetscErrorCode CharacteristicRegister(const char sname[],PetscErrorCode (*function)(Characteristic))
Not Collective Many br

Input Parameters

name_solver - name of a new user-defined solver Many br
routine_create - routine to create method context Many br

Sample usage

    CharacteristicRegister("my_char", MyCharCreate);
Many br

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

    CharacteristicCreate(MPI_Comm, Characteristic* &char);
    CharacteristicSetType(char,"my_char");
Many bror at runtime via the option Many br
    -characteristic_type my_char
Many br

Notes

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

Keywords

Characteristic, register

See Also

CharacteristicRegisterAll(), CharacteristicRegisterDestroy()

Many br

Level:advanced
Location:
src/ts/characteristic/interface/characteristic.c
Index of all SemiLagrange routines
Table of Contents for all manual pages
Index of all manual pages