Skip to content

Commit

Permalink
tidy - add extra assert to fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Aug 13, 2024
1 parent 311be37 commit 585c252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interface/ceed-basis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,8 @@ static int CeedBasisApplyAtPoints_Core(CeedBasis basis, bool apply_add, CeedInt

CeedCall(CeedBasisGetCeed(basis, &ceed));
CeedCall(CeedBasisGetDimension(basis, &dim));
// Inserting check because clang-tidy doesn't understand this cannot occur
CeedCheck(dim > 0, ceed, CEED_ERROR_UNSUPPORTED, "Malformed CeedBasis, dim > 0 is required");
CeedCall(CeedBasisGetNumNodes1D(basis, &P_1d));
CeedCall(CeedBasisGetNumQuadraturePoints1D(basis, &Q_1d));
CeedCall(CeedBasisGetNumComponents(basis, &num_comp));
Expand Down

0 comments on commit 585c252

Please sign in to comment.