PetscCallA#

Fortran-only macro that should be used in the main program to call PETSc functions instead of using PetscCall() which should be used in other Fortran subroutines

Synopsis#

#include <petscsys.h>
PetscErrorCode PetscCallA(PetscFunction(arguments,ierr))

Collective

Input Parameter#

  • PetscFunction(arguments,ierr) - the call to the function

Notes#

This should only be used with Fortran. With C/C++, use PetscCall() always.

Use SETERRA() to set an error in a Fortran main program and SETERRQ() in Fortran subroutines

See Also#

SETERRQ(), SETERRA(), SETERRABORT(), PetscCall(), CHKERRA(), PetscCallAbort()

Level#

beginner

Location#

include/petscerror.h

Examples#

src/dm/impls/plex/tutorials/ex1f90.F90
src/dm/impls/plex/tutorials/ex3f90.F90
src/dm/impls/plex/tutorials/ex4f90.F90
src/dm/impls/swarm/tutorials/ex1f90.F90
src/dm/label/tutorials/ex1f90.F90
src/dm/tutorials/ex11f90.F90
src/dm/tutorials/ex13f90.F90
src/ksp/ksp/tutorials/ex100f.F90
src/ksp/ksp/tutorials/ex11f.F90
src/ksp/ksp/tutorials/ex13f90.F90
src/ksp/ksp/tutorials/ex14f.F90


Edit on GitLab

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