ergo
BoxSystem Class Reference

#include <box_system.h>

Public Member Functions

 BoxSystem ()
 
 ~BoxSystem ()
 
int create_box_system (box_item_struct *itemList, int noOfItems, ergo_real toplevelBoxSize)
 Creates the box system. More...
 
int get_items_near_point (const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList) const
 Goes through existning box system to find all items within specified distance from given reference point. More...
 

Public Attributes

int totNoOfBoxes
 
int noOfLevels
 
box_level_struct levelList [MAX_NO_OF_BOX_LEVELS]
 
box_struct_basicboxList
 

Private Member Functions

int get_items_near_point_recursive (const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList, int level, int boxIndex) const
 

Constructor & Destructor Documentation

◆ BoxSystem()

BoxSystem::BoxSystem ( )

References boxList.

◆ ~BoxSystem()

BoxSystem::~BoxSystem ( )

References boxList.

Member Function Documentation

◆ create_box_system()

◆ get_items_near_point()

int BoxSystem::get_items_near_point ( const box_item_struct itemList,
const ergo_real coords,
ergo_real  distance,
int *  resultOrgIndexList 
) const

Goes through existning box system to find all items within specified distance from given reference point.

Parameters
itemListthe list of items for which the box system was created.
coordslist of 3 coordinates for reference point.
distancethe distance to find items within.
resultOrgIndexListpreallocated list of resulting org indexes.

References boxList, compare_ints(), distance(), do_output(), get_items_near_point_recursive(), levelList, LOG_AREA_INTEGRALS, and LOG_CAT_ERROR.

Referenced by compute_operator_matrix_sparse(), get_basis_func_pair_list_1el_for_V(), get_basis_func_pair_list_2el(), get_basis_func_pair_list_simple(), get_density(), get_list_of_labeled_distrs(), get_list_of_labeled_distrs_maxLimitingFactor(), get_maxLimitingFactor(), and get_product_distrs().

◆ get_items_near_point_recursive()

Member Data Documentation

◆ boxList

◆ levelList

◆ noOfLevels

◆ totNoOfBoxes


The documentation for this class was generated from the following files: