![]() |
(git:b77b4be)
|
Go to the source code of this file.
Data Structures | |
struct | grid_sphere_cache_entry |
Struct holding the sphere cache for one grid as specified by dr[3]. More... | |
struct | grid_sphere_cache |
Struct holding the entire sphere cache, ie. for all grids. More... | |
Functions | |
void | grid_sphere_cache_lookup (const double radius, const double dh[3][3], const double dh_inv[3][3], int **sphere_bounds, double *discretized_radius) |
Lookup the sphere bounds from the cache and compute them when missing. | |
void | grid_sphere_cache_free (grid_sphere_cache *cache) |
Free the memory of the sphere cache. | |
void grid_sphere_cache_lookup | ( | const double | radius, |
const double | dh[3][3], | ||
const double | dh_inv[3][3], | ||
int ** | sphere_bounds, | ||
double * | discr_radius | ||
) |
Lookup the sphere bounds from the cache and compute them when missing.
radius | Non-discretized radius. |
dh | Incremental grid matrix. |
dh_inv | Inverse incremental grid matrix. |
sphere_bounds | Returned pointer to sphere bounds. |
discr_radius | Returned discretized radius. |
Lookup the sphere bounds from the cache and compute them when missing.
Definition at line 98 of file grid_sphere_cache.c.
void grid_sphere_cache_free | ( | grid_sphere_cache * | cache | ) |
Free the memory of the sphere cache.
Definition at line 166 of file grid_sphere_cache.c.