(git:ccc2433)
grid_sphere_cache.h File Reference

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. More...
 
void grid_sphere_cache_free (grid_sphere_cache *cache)
 Free the memory of the sphere cache. More...
 

Function Documentation

◆ grid_sphere_cache_lookup()

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.

Parameters
radiusNon-discretized radius.
dhIncremental grid matrix.
dh_invInverse incremental grid matrix.
sphere_boundsReturned pointer to sphere bounds.
discr_radiusReturned discretized radius.
Author
Ole Schuett

Lookup the sphere bounds from the cache and compute them when missing.

Author
Ole Schuett

Definition at line 96 of file grid_sphere_cache.c.

Here is the call graph for this function:

◆ grid_sphere_cache_free()

void grid_sphere_cache_free ( grid_sphere_cache cache)

Free the memory of the sphere cache.

Author
Ole Schuett

Definition at line 163 of file grid_sphere_cache.c.

Here is the caller graph for this function: