Function t8_cmesh_get_attribute

Function Documentation

void *t8_cmesh_get_attribute(const t8_cmesh_t cmesh, const int package_id, const int key, const t8_locidx_t ltree_id)

Return the attribute pointer of a tree.

See also

sc_package_register

Note

cmesh must be committed before calling this function.

Parameters:
  • cmesh[in] The cmesh.

  • package_id[in] The identifier of a valid software package.

  • key[in] A key used to identify the attribute under all attributes of this tree with the same package_id.

  • ltree_id[in] The local number of the tree.

Returns:

The attribute pointer of the tree ltree_id or NULL if the attribute is not found.