| ceed-elemrestriction.c (2db7ab32b27a7c139da2037b4563a3addb30b1ca) | ceed-elemrestriction.c (fd364f385fcf8d7fc7b4a70eff195ce997d4a2a4) |
|---|---|
| 1// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3// reserved. See files LICENSE and NOTICE for details. 4// 5// This file is part of CEED, a collection of benchmarks, miniapps, software 6// libraries and APIs for efficient high-order finite element and spectral 7// element discretizations for exascale applications. For more information and 8// source code availability see http://github.com/ceed. --- 136 unchanged lines hidden (view full) --- 145 rstr->numreaders--; 146 return 0; 147} 148 149/** 150 @brief Get the strided status of a CeedElemRestriction 151 152 @param rstr CeedElemRestriction | 1// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3// reserved. See files LICENSE and NOTICE for details. 4// 5// This file is part of CEED, a collection of benchmarks, miniapps, software 6// libraries and APIs for efficient high-order finite element and spectral 7// element discretizations for exascale applications. For more information and 8// source code availability see http://github.com/ceed. --- 136 unchanged lines hidden (view full) --- 145 rstr->numreaders--; 146 return 0; 147} 148 149/** 150 @brief Get the strided status of a CeedElemRestriction 151 152 @param rstr CeedElemRestriction |
| 153 @param[out] status Variable to store strided status, 1 if strided else 0 | 153 @param[out] isstrided Variable to store strided status, 1 if strided else 0 |
| 154 155 @return An error code: 0 - success, otherwise - failure 156 157 @ref Backend 158**/ | 154 155 @return An error code: 0 - success, otherwise - failure 156 157 @ref Backend 158**/ |
| 159int CeedElemRestrictionGetStridedStatus(CeedElemRestriction rstr, 160 bool *status) { 161 *status = rstr->strides ? 1 : 0; | 159int CeedElemRestrictionIsStrided(CeedElemRestriction rstr, bool *isstrided) { 160 *isstrided = rstr->strides ? 1 : 0; |
| 162 return 0; 163} 164 165/** 166 @brief Get the backend stride status of a CeedElemRestriction 167 168 @param rstr CeedElemRestriction 169 @param[out] status Variable to store stride status 170 171 @return An error code: 0 - success, otherwise - failure 172 173 @ref Backend 174**/ | 161 return 0; 162} 163 164/** 165 @brief Get the backend stride status of a CeedElemRestriction 166 167 @param rstr CeedElemRestriction 168 @param[out] status Variable to store stride status 169 170 @return An error code: 0 - success, otherwise - failure 171 172 @ref Backend 173**/ |
| 175int CeedElemRestrictionGetBackendStridesStatus(CeedElemRestriction rstr, 176 bool *status) { | 174int CeedElemRestrictionHasBackendStrides(CeedElemRestriction rstr, 175 bool *hasbackendstrides) { |
| 177 if (!rstr->strides) 178 // LCOV_EXCL_START 179 return CeedError(rstr->ceed, 1, "ElemRestriction has no stride data"); 180 // LCOV_EXCL_STOP 181 | 176 if (!rstr->strides) 177 // LCOV_EXCL_START 178 return CeedError(rstr->ceed, 1, "ElemRestriction has no stride data"); 179 // LCOV_EXCL_STOP 180 |
| 182 *status = ((rstr->strides[0] == CEED_STRIDES_BACKEND[0]) && 183 (rstr->strides[1] == CEED_STRIDES_BACKEND[1]) && 184 (rstr->strides[2] == CEED_STRIDES_BACKEND[2])); | 181 *hasbackendstrides = ((rstr->strides[0] == CEED_STRIDES_BACKEND[0]) && 182 (rstr->strides[1] == CEED_STRIDES_BACKEND[1]) && 183 (rstr->strides[2] == CEED_STRIDES_BACKEND[2])); |
| 185 return 0; 186} 187 188/** 189 190 @brief Get the E-vector layout of a CeedElemRestriction 191 192 @param rstr CeedElemRestriction --- 695 unchanged lines hidden --- | 184 return 0; 185} 186 187/** 188 189 @brief Get the E-vector layout of a CeedElemRestriction 190 191 @param rstr CeedElemRestriction --- 695 unchanged lines hidden --- |