PetscFunctionBeginUser#

First executable line of user provided routines

Synopsis#

#include <petscsys.h>
void PetscFunctionBeginUser;

Not Collective; No Fortran Support

Usage#

     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/sys/tutorials/ex5.c
src/sys/tutorials/ex20.c
src/sys/tutorials/ex17.c
src/sys/tutorials/ex4.c
src/sys/tutorials/ex3.c
src/sys/tutorials/ex19.c
src/sys/tutorials/ex16.c
src/sys/tutorials/ex1.c
src/sys/tutorials/ex2.c
src/sys/classes/viewer/tutorials/ex1.c


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