petsc-3.14.5 2021-03-03
Report Typos and Errors

# 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);
       }

### Notes

Not available in Fortran

### See Also

PetscFunctionBegin()

### Level

developer

### Location

src/sys/error/../../../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/ex8.c.html
src/mat/tutorials/ex12.c.html
src/dm/impls/plex/tutorials/ex2.c.html
src/dm/impls/plex/tutorials/ex5.c.html
src/dm/impls/plex/tutorials/ex6.c.html
src/dm/impls/plex/tutorials/ex7.c.html
src/dm/impls/plex/tutorials/ex9.c.html
src/dm/impls/stag/tutorials/ex2.c.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages