PFSet

Sets the C/C++/Fortran functions to be used by the PF function

Synopsis

#include "petscpf.h" 
int PFSet(PF pf,int(*apply)(void*,int,PetscScalar*,PetscScalar*),int(*applyvec)(void*,Vec,Vec),int(*view)(void*,PetscViewer),int(*destroy)(void*),void*ctx)
Collective on PF

Input Parameter

pf - the function context
apply - function to apply to an array
applyvec - function to apply to a Vec
view - function that prints information about the PF
destroy - function to free the private function context
ctx - private function context

Keywords

PF, setting

See Also

PFCreate(), PFDestroy(), PFSetType(), PFApply(), PFApplyVec()

Level:beginner
Location:
src/pf/interface/pf.c
Index of all PF routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/pf/examples/tutorials/ex1.c.html