Function t8_cmesh_set_vertices_2D

Function Documentation

static void t8_cmesh_set_vertices_2D(t8_cmesh_t cmesh, const t8_eclass_t eclass, const double *boundary, const t8_locidx_t quads_x, const t8_locidx_t quads_y, const int use_axis_aligned_geom, const int offset)

This is just a helper function that was needed when we set the tree vertices of a 2 dimensional eclass in t8_cmesh_new_hypercube_ext(*).

Note

Each quad of quads_x * quads_y quads in boundary contains one tree of eclass T8_ECLASS_QUAD or two of T8_ECLASS_TRIANGLE.

Parameters:
  • cmesh[inout] The cmesh in which the vertices have to be set.

  • eclass[in] The class of each tree. T8_ECLASS_QUAD or T8_ECLASS_TRIANGLE

  • boundary[in] The boundary vertices of cmesh.

  • quads_x[in] The number of quads along the x-axis.

  • quads_y[in] The number of quads along the y-axis.

  • use_axis_aligned_geom[in] Flag if cmesh uses the axis_aligned_geometry. Only available for T8_ECLASS_QUAD.

  • offset[in] Offset for cmesh partitioning.