148 const double *ref_coords,
153 const double *ref_coords,
This structure holds the connectivity data of the coarse mesh.
Definition: t8_cmesh_types.h:83
Definition: t8_geometry.h:45
t8_refcount_t rc
The reference count of the geometry handler.
Definition: t8_geometry.h:54
int is_committed
If true, no new geometries can be registered.
Definition: t8_geometry.h:52
t8_geometry_c * active_geometry
Points to the currently loaded geometry (the geometry that was used last and is likely to be used nex...
Definition: t8_geometry.h:48
t8_gloidx_t active_tree
The global tree id of the last tree for which geometry was used.
Definition: t8_geometry.h:50
sc_array_t registered_geometries
Stores all geometries that are handled by this geometry_handler.
Definition: t8_geometry.h:46
Definition: t8_geometry_base.hxx:38
This is the administrative header file for t8code.
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:105
We define the coarse mesh of trees in this file.
void t8_geom_handler_register_geometry(t8_geometry_handler_t *geom_handler, const t8_geometry_c *geometry)
Add a geometry to the geometry handler.
Definition: t8_geometry.cxx:196
void t8_geom_handler_unref(t8_geometry_handler_t **pgeom_handler)
Decrease the reference count of a geometry handler, if the refcount reaches 0, the handler will get d...
Definition: t8_geometry.cxx:126
void t8_geom_handler_destroy(t8_geometry_handler_t **pgeom_handler)
Destroy a geometry handler and free its memory.
Definition: t8_geometry.cxx:139
void t8_geom_handler_commit(t8_geometry_handler_t *geom_handler)
Commit a geometry handler.
Definition: t8_geometry.cxx:213
size_t t8_geom_handler_get_num_geometries(const t8_geometry_handler_t *geom_handler)
Return the number of registered geometries.
Definition: t8_geometry.cxx:272
void t8_geom_handler_ref(t8_geometry_handler_t *geom_handler)
Increase the reference counter of a geometry handler.
Definition: t8_geometry.cxx:118
t8_geometry_c * t8_geom_handler_find_geometry(const t8_geometry_handler_t *geom_handler, const char *name)
Given a geometry's name find that geometry in the geometry handler and return it.
Definition: t8_geometry.cxx:252
void t8_geom_handler_init(t8_geometry_handler_t **pgeom_handler)
Initialize a geometry handler.
Definition: t8_geometry.cxx:74
const t8_geometry_c * t8_geom_handler_get_unique_geometry(const t8_geometry_handler_t *geom_handler)
If a geometry handler only has one registered geometry, get a pointer to this geometry.
Definition: t8_geometry.cxx:279
We inherit the reference counting mechanism from libsc.
sc_refcount_t t8_refcount_t
We can reuse the reference counter type from libsc.
Definition: t8_refcount.h:39