20#ifdef DEAL_II_WITH_PETSC
21# include <petscconf.h>
30 : error_code(error_code)
36 out <<
"deal.II encountered an error while calling a PETSc function."
38#ifdef DEAL_II_WITH_PETSC
41 const char * petsc_message;
42 const PetscErrorCode ierr = PetscErrorMessage(
error_code,
45 if (ierr == 0 && petsc_message !=
nullptr)
47 out <<
"The description of the error provided by PETSc is \""
48 << petsc_message <<
"\"." << std::endl;
53 <<
"PETSc was not able to determine a description for this particular error code."
57 out <<
"The numerical value of the original error code is " <<
error_code
virtual void print_info(std::ostream &out) const override
ExcPETScError(const int error_code)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE