59 void (*
print_func)(
char *,
int),
int output_unit);
void apply_cutoff(void *ptr)
void grid_library_finalize(void)
Finalizes the grid library.
void grid_library_counter_add(const int lp, const enum grid_backend backend, const enum grid_library_kernel kern, const int increment)
Adds given increment to counter specified by lp, backend, and kernel.
grid_library_kernel
Various kernels provided by the grid library.
grid_sphere_cache * grid_library_get_sphere_cache(void)
Returns a pointer to the thread local sphere cache.
void grid_library_print_stats(void(*mpi_sum_func)(long *, int), int mpi_comm, void(*print_func)(char *, int), int output_unit)
Prints statistics gathered by the grid library.
void grid_library_init(void)
Initializes the grid library.
grid_library_config grid_library_get_config(void)
Returns the library config.
void grid_library_set_config(const enum grid_backend backend, const bool validate, const bool apply_cutoff)
Configures the grid library.
void mpi_sum_func(long *number, int mpi_comm)
void print_func(char *message, int output_unit)
Configuration of the grid library.
Struct holding the entire sphere cache, ie. for all grids.