FEniCS/dolfinx

PETSc error code checking

Offen

#4.045 geöffnet am 23.01.2026

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (255 Forks)auto 404
good first issuehelp wanted

Repository-Metriken

Stars
 (1.158 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

We do not perform consistent error code checking of the PETSc error codes returned by function invocations. Not dealing with the returned error code will become a compiler warning in the future, ref https://gitlab.com/petsc/petsc/-/blob/main/include/petscsystypes.h#L54-57.

Verifiable by configuring PETSc with --with-strict-petscerrorcode ([[no-discard]] marking of PetscErrorCode) and building with -Werror.

Contributor Guide