PetscFunctionReturn#

Last executable line of each PETSc function used for error handling. Replaces return()

Synopsis#

#include <petscsys.h>
void PetscFunctionReturn(0);

Not Collective

Usage#

    ....
     PetscFunctionReturn(0);
   }

Note#

Not available in Fortran

See Also#

PetscFunctionBegin(), PetscStackPopNoCheck()

Level#

developer

Location#

include/petscerror.h

Examples#

src/sys/classes/random/tutorials/ex2.c.html
src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/vec/is/sf/tutorials/ex1.c.html
src/mat/tutorials/ex12.c.html
src/mat/tutorials/ex18.c.html
src/mat/tutorials/ex18cu.cu.html
src/mat/tutorials/ex18kok.kokkos.cxx.html
src/mat/tutorials/ex5cu.cu.html
src/mat/tutorials/ex8.c.html
src/dm/impls/plex/tutorials/ex10.c.html
src/dm/impls/plex/tutorials/ex11.c.html


Edit on GitLab

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