ceed-elemrestriction.c (ff1bc20e5f1db9421803faf3e8c80e7a5d10bee0) ceed-elemrestriction.c (637baffd68e35dfef8a5fda1061b9adf5878d273)
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>

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

141
142 @param[in] rstr `CeedElemRestriction`
143 @param[out] is_points Variable to store points status
144
145 @return An error code: 0 - success, otherwise - failure
146
147 @ref Backend
148**/
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>

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

141
142 @param[in] rstr `CeedElemRestriction`
143 @param[out] is_points Variable to store points status
144
145 @return An error code: 0 - success, otherwise - failure
146
147 @ref Backend
148**/
149int CeedElemRestrictionIsPoints(CeedElemRestriction rstr, bool *is_points) {
149int CeedElemRestrictionIsAtPoints(CeedElemRestriction rstr, bool *is_points) {
150 *is_points = (rstr->rstr_type == CEED_RESTRICTION_POINTS);
151 return CEED_ERROR_SUCCESS;
152}
153
154/**
155 @brief Check if two `CeedElemRestriction` created with @ref CeedElemRestrictionCreateAtPoints() and use the same points per element
156
157 @param[in] rstr_a First `CeedElemRestriction`

--- 1579 unchanged lines hidden ---
150 *is_points = (rstr->rstr_type == CEED_RESTRICTION_POINTS);
151 return CEED_ERROR_SUCCESS;
152}
153
154/**
155 @brief Check if two `CeedElemRestriction` created with @ref CeedElemRestrictionCreateAtPoints() and use the same points per element
156
157 @param[in] rstr_a First `CeedElemRestriction`

--- 1579 unchanged lines hidden ---