CeedElemRestriction

int CeedElemRestrictionGetCeed(CeedElemRestriction rstr, Ceed *ceed)

Get the Ceed associated with a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

  • [out] ceed: Variable to store Ceed

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

Get the strides of a strided CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

  • [out] strides: Variable to store strides array

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

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

User Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction to retrieve offsets

  • mtype: Memory type on which to access the array. If the backend uses a different memory type, this will perform a copy (possibly cached).

  • [out] offsets: Array on memory type mtype

int CeedElemRestrictionRestoreOffsets(CeedElemRestriction rstr, const CeedInt **offsets)

Restore an offsets array obtained using CeedElemRestrictionGetOffsets()

User Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction to restore

  • offsets: Array of offset data

int CeedElemRestrictionIsStrided(CeedElemRestriction rstr, bool *isstrided)

Get the strided status of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

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

int CeedElemRestrictionHasBackendStrides(CeedElemRestriction rstr, bool *hasbackendstrides)

Get the backend stride status of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

  • [out] status: Variable to store stride status

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

Get the E-vector layout of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

  • [out] layout: 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]

int CeedElemRestrictionSetELayout(CeedElemRestriction rstr, CeedInt layout[3])

Set the E-vector layout of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

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]

int CeedElemRestrictionGetData(CeedElemRestriction rstr, void *data)

Get the backend data of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • rstr: CeedElemRestriction

  • [out] data: Variable to store data

int CeedElemRestrictionSetData(CeedElemRestriction rstr, void *data)

Set the backend data of a CeedElemRestriction.

Backend Developer Functions

Return

An error code: 0 - success, otherwise - failure

Parameters
  • [out] rstr: CeedElemRestriction

  • data: Data to set