Function t8_forest_new_adapt

Function Documentation

t8_forest_t t8_forest_new_adapt(t8_forest_t forest_from, t8_forest_adapt_t adapt_fn, int recursive, int do_face_ghost, void *user_data)

Build a adapted forest from another forest.

Note

This is equivalent to calling t8_forest_init, t8_forest_set_adapt, t8_forest_set_ghost, and t8_forest_commit

Parameters:
  • forest_from[in] The forest to refine

  • adapt_fn[in] Adapt function to use

  • recursive[in] If true adaptation is recursive

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

  • user_data[in] If not NULL, the user data pointer of the forest is set to this value.

Returns:

A new forest that is adapted from forest_from.