CeedElemRestriction
-
int CeedElemRestrictionGetType(CeedElemRestriction rstr, CeedRestrictionType *rstr_type)
Get the type of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionrstr_type – [out] Variable to store restriction type
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionIsStrided(CeedElemRestriction rstr, bool *is_strided)
Get the strided status of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionis_strided – [out] Variable to store strided status
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionIsAtPoints(CeedElemRestriction rstr, bool *is_points)
Get the points status of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionis_points – [out] Variable to store points status
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionAtPointsAreCompatible(CeedElemRestriction rstr_a, CeedElemRestriction rstr_b, bool *are_compatible)
Check if two
CeedElemRestrictioncreated with CeedElemRestrictionCreateAtPoints() and use the same points per element.Backend Developer Functions
- Parameters:
rstr_a – [in] First
CeedElemRestrictionrstr_b – [in] Second
CeedElemRestrictionare_compatible – [out] Variable to store compatibility status
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetStrides(CeedElemRestriction rstr, CeedInt strides[3])
Get the strides of a strided
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionstrides – [out] Variable to store strides array
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionHasBackendStrides(CeedElemRestriction rstr, bool *has_backend_strides)
Get the backend stride status of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionhas_backend_strides – [out] Variable to store stride status
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetOffsets(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt **offsets)
Get read-only access to a
CeedElemRestrictionoffsets array by CeedMemType.User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto retrieve offsetsmem_type – [in] Memory type on which to access the array. If the backend uses a different memory type, this will perform a copy (possibly cached).
offsets – [out] Array on memory type
mem_type
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionRestoreOffsets(CeedElemRestriction rstr, const CeedInt **offsets)
Restore an offsets array obtained using CeedElemRestrictionGetOffsets()
User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto restoreoffsets – [in] Array of offset data
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetOrientations(CeedElemRestriction rstr, CeedMemType mem_type, const bool **orients)
Get read-only access to a
CeedElemRestrictionorientations array by CeedMemType.User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto retrieve orientationsmem_type – [in] Memory type on which to access the array. If the backend uses a different memory type, this will perform a copy (possibly cached).
orients – [out] Array on memory type
mem_type
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionRestoreOrientations(CeedElemRestriction rstr, const bool **orients)
Restore an orientations array obtained using CeedElemRestrictionGetOrientations()
User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto restoreorients – [in] Array of orientation data
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetCurlOrientations(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt8 **curl_orients)
Get read-only access to a
CeedElemRestrictioncurl-conforming orientations array by CeedMemType.User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto retrieve curl-conforming orientationsmem_type – [in] Memory type on which to access the array. If the backend uses a different memory type, this will perform a copy (possibly cached).
curl_orients – [out] Array on memory type
mem_type
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionRestoreCurlOrientations(CeedElemRestriction rstr, const CeedInt8 **curl_orients)
Restore an orientations array obtained using CeedElemRestrictionGetCurlOrientations()
User Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto restorecurl_orients – [in] Array of orientation data
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetLLayout(CeedElemRestriction rstr, CeedInt layout[3])
Get the L-vector layout of a strided
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionlayout – [out] Variable to store layout array, stored as
[nodes, components, elements]. The data for nodei, componentj, elementkin the E-vector is given byi*layout[0] + j*layout[1] + k*layout[2].
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionSetLLayout(CeedElemRestriction rstr, CeedInt layout[3])
Set the L-vector layout of a strided
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionlayout – [in] Variable to containing layout array, stored as
[nodes, components, elements]. The data for nodei, componentj, elementkin the E-vector is given byi*layout[0] + j*layout[1] + k*layout[2].
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetELayout(CeedElemRestriction rstr, CeedInt layout[3])
Get the E-vector layout of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionlayout – [out] Variable to store layout array, stored as
[nodes, components, elements]. The data for nodei, componentj, elementkin the E-vector is given byi*layout[0] + j*layout[1] + k*layout[2].
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionSetELayout(CeedElemRestriction rstr, CeedInt layout[3])
Set the E-vector layout of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionlayout – [in] Variable to containing layout array, stored as
[nodes, components, elements]. The data for nodei, componentj, elementkin the E-vector is given byi*layout[0] + j*layout[1] + k*layout[2].
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetAtPointsElementOffset(CeedElemRestriction rstr, CeedInt elem, CeedSize *elem_offset)
Get the E-vector element offset of a
CeedElemRestrictionat points.Backend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionelem – [in] Element number index into E-vector for
elem_offset – [out] Offset for element
elemin the E-vector. The data for pointi, componentj, elementelemin the E-vector is given byi*e_layout[0] + j*e_layout[1] + elem_offset.
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionSetAtPointsEVectorSize(CeedElemRestriction rstr, CeedSize e_size)
Set the E-vector size of a
CeedElemRestrictionat points.Backend Developer Functions
- Parameters:
rstr – [inout]
CeedElemRestrictione_size – [in] New E-vector size; must be longer than the current E-vector size
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetData(CeedElemRestriction rstr, void *data)
Get the backend data of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictiondata – [out] Variable to store data
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionSetData(CeedElemRestriction rstr, void *data)
Set the backend data of a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [inout]
CeedElemRestrictiondata – [in] Data to set
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionReference(CeedElemRestriction rstr)
Increment the reference counter for a
CeedElemRestrictionBackend Developer Functions
- Parameters:
rstr – [inout]
CeedElemRestrictionto increment the reference counter
- Returns:
An error code: 0 - success, otherwise - failure
-
int CeedElemRestrictionGetFlopsEstimate(CeedElemRestriction rstr, CeedTransposeMode t_mode, CeedSize *flops)
Estimate number of FLOPs required to apply
CeedElemRestrictionint_modeBackend Developer Functions
- Parameters:
rstr – [in]
CeedElemRestrictionto estimate FLOPs fort_mode – [in] Apply restriction or transpose
flops – [out] Address of variable to hold FLOPs estimate