Function t8_forest_adapt_coarsen_recursive

Function Documentation

static void t8_forest_adapt_coarsen_recursive(t8_forest_t forest, t8_locidx_t ltreeid, t8_eclass_t tree_class, t8_locidx_t lelement_id, const t8_scheme *scheme, t8_element_array_t *telements, t8_locidx_t el_coarsen, t8_locidx_t *el_inserted, t8_element_t **el_buffer)

Check the lastly inserted elements of an array for recursive coarsening. The last inserted element must be the last element of a family.

Parameters:
  • forest[in] The new forest currently in construction.

  • ltreeid[in] The current local tree.

  • tree_class[in] The eclass of tree ltreeid.

  • lelement_id[in] The id of the currently coarsened element in the tree of the original forest.

  • scheme[in] The scheme for this local tree.

  • telements[in] The array of newly created (adapted) elements. The last inserted element must be the last child in its family.

  • el_coarsen[in] the index of the first element in telement array which could be coarsened recursively.

  • el_inserted[inout] On input the number of elements in telement, on output the new number of elements (so it will be smaller or equal to its input).

  • el_buffer[in] Buffer space to store a family of elements.