ceed-vector.c (6b10039809512a52c0b4d656274c56ab7eb97a4b) ceed-vector.c (8bbba8cdca038b4242f0cbb369bb1e31b8a6e289)
1// Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#include <ceed-impl.h>

--- 848 unchanged lines hidden (view full) ---

857 CeedScalar const *x_array = NULL, *y_array = NULL;
858 CeedSize length_w, length_x, length_y;
859 Ceed ceed, ceed_parent_w, ceed_parent_x, ceed_parent_y;
860
861 CeedCall(CeedVectorGetCeed(w, &ceed));
862 CeedCall(CeedVectorGetLength(w, &length_w));
863 CeedCall(CeedVectorGetLength(x, &length_x));
864 CeedCall(CeedVectorGetLength(y, &length_y));
1// Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#include <ceed-impl.h>

--- 848 unchanged lines hidden (view full) ---

857 CeedScalar const *x_array = NULL, *y_array = NULL;
858 CeedSize length_w, length_x, length_y;
859 Ceed ceed, ceed_parent_w, ceed_parent_x, ceed_parent_y;
860
861 CeedCall(CeedVectorGetCeed(w, &ceed));
862 CeedCall(CeedVectorGetLength(w, &length_w));
863 CeedCall(CeedVectorGetLength(x, &length_x));
864 CeedCall(CeedVectorGetLength(y, &length_y));
865 CeedCheck(length_w == length_x && length_w == length_y, ceed, CEED_ERROR_UNSUPPORTED,
865 CeedCheck(length_x >= length_x && length_y >= length_w, ceed, CEED_ERROR_UNSUPPORTED,
866 "Cannot multiply vectors of different lengths."
867 " x length: %" CeedSize_FMT " y length: %" CeedSize_FMT,
868 length_x, length_y);
869
870 CeedCall(CeedGetParent(w->ceed, &ceed_parent_w));
871 CeedCall(CeedGetParent(x->ceed, &ceed_parent_x));
872 CeedCall(CeedGetParent(y->ceed, &ceed_parent_y));
873 CeedCheck(ceed_parent_w == ceed_parent_x && ceed_parent_w == ceed_parent_y, ceed, CEED_ERROR_INCOMPATIBLE,

--- 216 unchanged lines hidden ---
866 "Cannot multiply vectors of different lengths."
867 " x length: %" CeedSize_FMT " y length: %" CeedSize_FMT,
868 length_x, length_y);
869
870 CeedCall(CeedGetParent(w->ceed, &ceed_parent_w));
871 CeedCall(CeedGetParent(x->ceed, &ceed_parent_x));
872 CeedCall(CeedGetParent(y->ceed, &ceed_parent_y));
873 CeedCheck(ceed_parent_w == ceed_parent_x && ceed_parent_w == ceed_parent_y, ceed, CEED_ERROR_INCOMPATIBLE,

--- 216 unchanged lines hidden ---