:orphan: # PetscFunctionBeginUser First executable line of user provided routines ## Synopsis ``` #include void PetscFunctionBeginUser; ``` Not Collective; No Fortran Support ## Usage ```none int something; PetscFunctionBeginUser; ``` ## Notes Functions that incorporate this must call `PetscFunctionReturn()` instead of return except for main(). May be used before `PetscInitialize()` This is identical to `PetscFunctionBegin` except it labels the routine as a user routine instead of as a PETSc library routine. ## See Also `PetscFunctionReturn()`, `PetscFunctionBegin`, `PetscFunctionBeginHot`, `PetscStackPushNoCheck()` ## Level intermediate ## Location include/petscerror.h ## Examples src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c
src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c
src/dm/field/tutorials/ex1.c
src/dm/impls/forest/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex10.c
src/dm/impls/plex/tutorials/ex11.c
src/dm/impls/plex/tutorials/ex13.c
src/dm/impls/plex/tutorials/ex14.c
src/dm/impls/plex/tutorials/ex5.c
src/dm/impls/plex/tutorials/ex6.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscerror.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)