Function t8_geometry_analytic_new
Defined in File t8_geometry_analytic.h
Function Documentation
-
t8_geometry_c *t8_geometry_analytic_new(const char *name, t8_geom_analytic_fn analytical, t8_geom_analytic_jacobian_fn jacobian, t8_geom_load_tree_data_fn load_tree_data, t8_geom_tree_negative_volume_fn tree_negative_volume, t8_geom_tree_compatible_fn tree_compatible, const void *user_data)
Create a new analytic geometry.
The geometry is viable with all tree types and uses a user-provided analytic and jacobian function. The actual mappings are done by these functions.
- Parameters:
name – [in] The name to give this geometry.
analytical – [in] The analytical function to use for this geometry.
jacobian – [in] The jacobian of analytical.
load_tree_data – [in] The function that is used to load a tree’s data.
tree_negative_volume – [in] The function that is used to compute if a trees volume is negative.
tree_compatible – [in] The function that is used to check if a tree is compatible with the geometry.
user_data – [in] Additional user data which the geometry can use.
- Returns:
A pointer to an allocated geometry struct.