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.

貢獻者指南