FEniCS/dolfinx

PETSc error code checking

オープン

#4,045 opened on 2026/01/23

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (255 件のフォーク)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (1,158 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド