Function t8_forest_element_from_ref_coords

Function Documentation

void t8_forest_element_from_ref_coords(t8_forest_t forest, t8_locidx_t ltreeid, const t8_element_t *element, const double *ref_coords, const size_t num_coords, double *coords_out)

Compute the coordinates of a point inside an element inside a tree.

The point is given in reference coordinates inside the element and gets converted to reference coordinates inside the tree. After that, the point is converted to global coordinates inside the domain.

Parameters:
  • forest[in] The forest.

  • ltreeid[in] The forest local id of the tree in which the element is.

  • element[in] The element.

  • ref_coords[in] The reference coordinates of the point inside the element.

  • num_coords[in] The number of coordinate sets in ref_coord (dimension x double).

  • coords_out[out] On input an allocated array to store 3 doubles, on output the x, y and z coordinates of the point inside the domain.