Class t8_cmesh_vertex_conn_tree_to_vertex

Class Documentation

class t8_cmesh_vertex_conn_tree_to_vertex

A class to hold the tree to vertex connectivity of a cmesh.

Public Functions

inline t8_cmesh_vertex_conn_tree_to_vertex()

Standard constructor.

Does nothing.

inline t8_cmesh_vertex_conn_tree_to_vertex([[maybe_unused]] const t8_cmesh_t cmesh)

Constructor from a cmesh where all the attributes are set.

Currently unclear if we implement this eventually. If we do so: Should the cmesh be already committed, or in pre-commit state but attributes set?

Note

This function is not implemented yet.

t8_cmesh_vertex_conn_tree_to_vertex(const t8_cmesh_t cmesh_from, const t8_cmesh_t cmesh, const struct t8_cmesh_vertex_conn_vertex_to_tree &vtt)

Constructor from a cmesh and a given vertex to tree connectivity.

As a result a tree to vertex connectivity for cmesh will be constructed.

Note

cmesh_from must be committed.

Note

cmesh must not be committed.

Note

vtt must be committed.

Note

This does not work until issue #923 https://github.com/DLR-AMR/t8code/issues/923 is resolved.

Parameters:
  • cmesh_from[in] A committed cmesh.

  • cmesh[in] An initialized but not committed cmesh that is to be derived from cmesh_from.

  • vtt[in] A committed vertex to tree connectivity for cmesh_from.

inline void set_global_vertex_ids_of_tree_vertices(const t8_cmesh_t cmesh, const t8_gloidx_t global_tree, const t8_gloidx_t *global_tree_vertices, const int num_vertices)

Set all global vertex ids of a local tree.

Note

cmesh must not be committed.

Parameters:
  • cmesh[in] The considered cmesh

  • global_tree[in] A global tree id of cmesh

  • global_tree_vertices[in] The ids of the global vertices in order of local_tree’s vertices.

  • num_vertices[in] Must match the number of vertices of local_tree

inline const std::span<const t8_gloidx_t> get_global_vertices(const t8_cmesh_t cmesh, const t8_locidx_t local_tree) const

Return the global vertex indices of a local tree.

Parameters:
  • cmesh[in] A committed cmesh.

  • local_tree[in] A local tree in cmesh.

Returns:

An array of length num_vertices containing the global vertex ids of local_tree’s vertices.

inline t8_gloidx_t get_global_vertex(const t8_cmesh_t cmesh, const t8_locidx_t local_tree, const int local_tree_vertex) const

Return a single global vertex id of a single local vertex.

Parameters:
  • cmesh[in] A committed cmesh.

  • local_tree[in] A local tree of cmesh.

  • local_tree_vertex[in] A local vertex of local_tree

Returns:

The global id of the local vertex local_tree_vertex of local_tree.

Friends

friend struct t8_cmesh_vertex_connectivity