CeedElemRestriction

int CeedElemRestrictionGetStrides(CeedElemRestriction rstr, CeedInt (*strides)[3])

Get the strides of a strided CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • strides[out] Variable to store strides array

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionGetOffsets(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt **offsets)

Get read-only access to a CeedElemRestriction offsets array by memtype.

User Functions

Parameters
  • rstr – CeedElemRestriction to retrieve offsets

  • mem_type – 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 – CeedElemRestriction to restore

  • offsets – Array of offset data

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionIsStrided(CeedElemRestriction rstr, bool *is_strided)

Get the strided status of a CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • is_strided[out] Variable to store strided status, 1 if strided else 0

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionHasBackendStrides(CeedElemRestriction rstr, bool *has_backend_strides)

Get the backend stride status of a CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • has_backend_strides[out] Variable to store stride status

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionGetELayout(CeedElemRestriction rstr, CeedInt (*layout)[3])

Get the E-vector layout of a CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • layout[out] Variable to store layout array, stored as [nodes, components, elements]. The data for node i, component j, element k in the E-vector is given by i*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 CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • layout – Variable to containing layout array, stored as [nodes, components, elements]. The data for node i, component j, element k in the E-vector is given by i*layout[0] + j*layout[1] + k*layout[2]

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionGetData(CeedElemRestriction rstr, void *data)

Get the backend data of a CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – CeedElemRestriction

  • data[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 CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr[out] CeedElemRestriction

  • data – Data to set

Returns

An error code: 0 - success, otherwise - failure

int CeedElemRestrictionReference(CeedElemRestriction rstr)

Increment the reference counter for a CeedElemRestriction.

Backend Developer Functions

Parameters
  • rstr – ElemRestriction to increment the reference counter

Returns

An error code: 0 - success, otherwise - failure