Function t8_cmesh_new_row_of_cubes

Function Documentation

t8_cmesh_t t8_cmesh_new_row_of_cubes(t8_locidx_t num_trees, const int set_attributes, const int do_partition, sc_MPI_Comm comm, const int package_id)

Construct num_trees many cubes each of length 1 connected along the x-axis without any additional attributes than the tree-vertices, or with additional attributes.

Parameters:
  • num_trees[in] The number of trees along the x-axis

  • set_attributes[in] If 1, set tree_id and num_trees as additional attribute for each tree.

  • do_partition[in] Partition the cmesh.

  • comm[in] The MPI communicator used to commit the cmesh.

  • package_id[in] The package id to use for the cmesh. Cannot be the t8 or sc package id.

Returns:

A cmesh with num_trees many hexahedrons.