Skip to content

Commit

Permalink
Rebase fix for new CeedCheck macro
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Apr 24, 2023
1 parent 2ab21da commit 57d0363
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions interface/ceed-elemrestriction.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,20 +655,10 @@ int CeedElemRestrictionApplyUnsigned(CeedElemRestriction rstr, CeedTransposeMode
m = rstr->l_size;
n = rstr->num_blk * rstr->blk_size * rstr->elem_size * rstr->num_comp;
}
if (n != u->length) {
// LCOV_EXCL_START
return CeedError(rstr->ceed, CEED_ERROR_DIMENSION,
"Input vector size %" CeedInt_FMT " not compatible with element restriction (%" CeedInt_FMT ", %" CeedInt_FMT ")", u->length, m,
n);
// LCOV_EXCL_STOP
}
if (m != ru->length) {
// LCOV_EXCL_START
return CeedError(rstr->ceed, CEED_ERROR_DIMENSION,
"Output vector size %" CeedInt_FMT " not compatible with element restriction (%" CeedInt_FMT ", %" CeedInt_FMT ")", ru->length,
m, n);
// LCOV_EXCL_STOP
}
CeedCheck(n == u->length, rstr->ceed, CEED_ERROR_DIMENSION,
"Input vector size %" CeedInt_FMT " not compatible with element restriction (%" CeedInt_FMT ", %" CeedInt_FMT ")", u->length, m, n);
CeedCheck(m == ru->length, rstr->ceed, CEED_ERROR_DIMENSION,
"Output vector size %" CeedInt_FMT " not compatible with element restriction (%" CeedInt_FMT ", %" CeedInt_FMT ")", ru->length, m, n);
if (rstr->num_elem > 0) {
if (rstr->ApplyUnsigned) CeedCall(rstr->ApplyUnsigned(rstr, t_mode, u, ru, request));
else CeedCall(rstr->Apply(rstr, t_mode, u, ru, request));
Expand Down

0 comments on commit 57d0363

Please sign in to comment.