FEniCS/dolfinx

PETSc error code checking

开放

#4,045 创建于 2026年1月23日

 (2 条评论) (0 个反应) (0 位负责人)C++ (255 个派生)auto 404
good first issuehelp wanted

仓库指标

星标
 (1,158 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南