| ceed-elemrestriction.c (6a6b797f790a7f197cde448212987b3ead5d18fa) | ceed-elemrestriction.c (690992b2ef7dcef8d00e259f2fa17075fde4c330) |
|---|---|
| 1// Copyright (c) 2017-2025, 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> --- 108 unchanged lines hidden (view full) --- 117 @ref Backend 118**/ 119int CeedElemRestrictionGetType(CeedElemRestriction rstr, CeedRestrictionType *rstr_type) { 120 *rstr_type = rstr->rstr_type; 121 return CEED_ERROR_SUCCESS; 122} 123 124/** | 1// Copyright (c) 2017-2025, 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> --- 108 unchanged lines hidden (view full) --- 117 @ref Backend 118**/ 119int CeedElemRestrictionGetType(CeedElemRestriction rstr, CeedRestrictionType *rstr_type) { 120 *rstr_type = rstr->rstr_type; 121 return CEED_ERROR_SUCCESS; 122} 123 124/** |
| 125 @brief Get the number of tabs to indent for @ref CeedElemRestrictionView() output 126 127 @param[in] rstr `CeedElemRestriction` to get the number of view tabs 128 @param[out] num_tabs Number of view tabs 129 130 @return Error code: 0 - success, otherwise - failure 131 132 @ref Backend 133**/ 134int CeedElemRestrictionGetNumViewTabs(CeedElemRestriction rstr, CeedInt *num_tabs) { 135 *num_tabs = rstr->num_tabs; 136 return CEED_ERROR_SUCCESS; 137} 138 139/** | |
| 140 @brief Get the strided status of a `CeedElemRestriction` 141 142 @param[in] rstr `CeedElemRestriction` 143 @param[out] is_strided Variable to store strided status 144 145 @return An error code: 0 - success, otherwise - failure 146 147 @ref Backend --- 1600 unchanged lines hidden (view full) --- 1748**/ 1749int CeedElemRestrictionSetNumViewTabs(CeedElemRestriction rstr, CeedInt num_tabs) { 1750 CeedCheck(num_tabs >= 0, CeedElemRestrictionReturnCeed(rstr), CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 1751 rstr->num_tabs = num_tabs; 1752 return CEED_ERROR_SUCCESS; 1753} 1754 1755/** | 125 @brief Get the strided status of a `CeedElemRestriction` 126 127 @param[in] rstr `CeedElemRestriction` 128 @param[out] is_strided Variable to store strided status 129 130 @return An error code: 0 - success, otherwise - failure 131 132 @ref Backend --- 1600 unchanged lines hidden (view full) --- 1733**/ 1734int CeedElemRestrictionSetNumViewTabs(CeedElemRestriction rstr, CeedInt num_tabs) { 1735 CeedCheck(num_tabs >= 0, CeedElemRestrictionReturnCeed(rstr), CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 1736 rstr->num_tabs = num_tabs; 1737 return CEED_ERROR_SUCCESS; 1738} 1739 1740/** |
| 1741 @brief Get the number of tabs to indent for @ref CeedElemRestrictionView() output 1742 1743 @param[in] rstr `CeedElemRestriction` to get the number of view tabs 1744 @param[out] num_tabs Number of view tabs 1745 1746 @return Error code: 0 - success, otherwise - failure 1747 1748 @ref User 1749**/ 1750int CeedElemRestrictionGetNumViewTabs(CeedElemRestriction rstr, CeedInt *num_tabs) { 1751 *num_tabs = rstr->num_tabs; 1752 return CEED_ERROR_SUCCESS; 1753} 1754 1755/** |
|
| 1756 @brief View a `CeedElemRestriction` 1757 1758 @param[in] rstr `CeedElemRestriction` to view 1759 @param[in] stream Stream to write; typically `stdout` or a file 1760 1761 @return Error code: 0 - success, otherwise - failure 1762 1763 @ref User --- 68 unchanged lines hidden --- | 1756 @brief View a `CeedElemRestriction` 1757 1758 @param[in] rstr `CeedElemRestriction` to view 1759 @param[in] stream Stream to write; typically `stdout` or a file 1760 1761 @return Error code: 0 - success, otherwise - failure 1762 1763 @ref User --- 68 unchanged lines hidden --- |