Function t8_cmesh_set_attribute_string(t8_cmesh_t, t8_gloidx_t, int, int, const char *)

Function Documentation

void t8_cmesh_set_attribute_string(t8_cmesh_t cmesh, t8_gloidx_t gtree_id, int package_id, int key, const char *string)

Store a string as an attribute at a tree in a cmesh.

See also

sc_package_register

Note

You can also use t8_cmesh_set_attribute, but we recommend using this specialized function for strings.

Note

If an attribute with the given package_id and key already exists, then it will get overwritten.

Parameters:
  • cmesh[inout] The cmesh to be updated.

  • gtree_id[in] The global id of the tree.

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

  • key[in] An integer key used to identify this attribute under all attributes with the same package_id. key must be a unique value for this tree and package_id.

  • string[in] The string to store as attribute.