Skip to content

Commit

Permalink
vec - fix poinwisemult length check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Oct 3, 2024
1 parent bdd4742 commit ccad5cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interface/ceed-vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,10 @@ int CeedVectorPointwiseMult(CeedVector w, CeedVector x, CeedVector y) {
CeedCall(CeedVectorGetLength(w, &length_w));
CeedCall(CeedVectorGetLength(x, &length_x));
CeedCall(CeedVectorGetLength(y, &length_y));
CeedCheck(length_x >= length_x && length_y >= length_w, ceed, CEED_ERROR_UNSUPPORTED,
"Cannot multiply vectors of different lengths."
" x length: %" CeedSize_FMT " y length: %" CeedSize_FMT,
length_x, length_y);
CeedCheck(length_x >= length_w && length_y >= length_w, ceed, CEED_ERROR_UNSUPPORTED,
"Cannot pointwise multiply vectors of incompatible lengths."
" w length: %" CeedSize_FMT " x length: %" CeedSize_FMT " y length: %" CeedSize_FMT,
length_w, length_x, length_y);

CeedCall(CeedGetParent(w->ceed, &ceed_parent_w));
CeedCall(CeedGetParent(x->ceed, &ceed_parent_x));
Expand Down

0 comments on commit ccad5cb

Please sign in to comment.