Template Function t8_mesh_handle::handle_hypercube_hybrid_uniform_default

Function Documentation

template<T8MeshType TMeshClass>
std::unique_ptr<TMeshClass> t8_mesh_handle::handle_hypercube_hybrid_uniform_default(const int level, const sc_MPI_Comm comm, const bool do_partition = false, const bool do_face_ghost = false, const bool periodic = false)

Hybercube with 6 Tets, 6 Prism, 4 Hex.

Refined uniformly to given level using the default scheme.

Parameters:
  • level[in] An initial uniform refinement level.

  • comm[in] MPI communicator to use.

  • do_partition[in] If non-zero create a partitioned cmesh.

  • do_face_ghost[in] If true, a layer of ghost elements is created.

  • periodic[in] If non-zero create a periodic cmesh in each direction.

Template Parameters:

TMeshClass – The mesh handle class.

Returns:

Unique pointer to a uniformly refined mesh handle initially consisting of 6 Tets, 6 prism and 4 hex. Together, they form a cube.