ceed-operator.c (390feb51cf2967ceb06ecdac378b87ebc3bb06a6) ceed-operator.c (19feff82d9a67df6ce1e0b86aa12b71dfb25f41c)
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>

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

1714 }
1715 } else {
1716 bool is_at_points;
1717 CeedInt num_input_fields, num_output_fields, num_elem = 0, num_points = 0;
1718 CeedQFunction qf;
1719 CeedQFunctionField *qf_input_fields, *qf_output_fields;
1720 CeedOperatorField *op_input_fields, *op_output_fields;
1721
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>

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

1714 }
1715 } else {
1716 bool is_at_points;
1717 CeedInt num_input_fields, num_output_fields, num_elem = 0, num_points = 0;
1718 CeedQFunction qf;
1719 CeedQFunctionField *qf_input_fields, *qf_output_fields;
1720 CeedOperatorField *op_input_fields, *op_output_fields;
1721
1722 CeedCall(CeedOperatorIsAtPoints(op, &is_at_points));
1723 CeedCall(CeedOperatorGetNumElements(op, &num_elem));
1722 CeedCall(CeedOperatorGetNumElements(op, &num_elem));
1723 if (num_elem == 0) return CEED_ERROR_SUCCESS;
1724 CeedCall(CeedOperatorIsAtPoints(op, &is_at_points));
1724 if (is_at_points) {
1725 CeedMemType mem_type;
1726 CeedElemRestriction rstr_points = NULL;
1727
1728 CeedCall(CeedOperatorAtPointsGetPoints(op, &rstr_points, NULL));
1729 CeedCall(CeedGetPreferredMemType(CeedOperatorReturnCeed(op), &mem_type));
1730 if (mem_type == CEED_MEM_DEVICE) {
1731 // Device backends pad out to the same number of points per element

--- 616 unchanged lines hidden ---
1725 if (is_at_points) {
1726 CeedMemType mem_type;
1727 CeedElemRestriction rstr_points = NULL;
1728
1729 CeedCall(CeedOperatorAtPointsGetPoints(op, &rstr_points, NULL));
1730 CeedCall(CeedGetPreferredMemType(CeedOperatorReturnCeed(op), &mem_type));
1731 if (mem_type == CEED_MEM_DEVICE) {
1732 // Device backends pad out to the same number of points per element

--- 616 unchanged lines hidden ---