Neighbor information collector.
More...
#include <neighbor.h>
template<class Tparticle>
class H4::Neighbor< Tparticle >
Neighbor information collector.
◆ Neighbor()
template<class Tparticle >
◆ checkAndAddNeighborGroup()
template<class Tparticle >
template<class Tgroup >
void H4::Neighbor< Tparticle >::checkAndAddNeighborGroup |
( |
const Float |
_r2, |
|
|
Tgroup & |
_group, |
|
|
const int |
_index |
|
) |
| |
|
inline |
check and add neighbor of group
◆ checkAndAddNeighborSingle()
template<class Tparticle >
template<class Tp >
void H4::Neighbor< Tparticle >::checkAndAddNeighborSingle |
( |
const Float |
_r2, |
|
|
Tp & |
_particle, |
|
|
const Neighbor< Tparticle > & |
_nbp, |
|
|
const int |
_index |
|
) |
| |
|
inline |
check and add neighbor of single
◆ checkGroupResolve()
template<class Tparticle >
check whether members should be resolved for outside
- Parameters
-
[in] | _kappa | slowdown factor |
◆ checkParams()
template<class Tparticle >
check whether parameters values are correct
- Returns
- true: all correct
◆ clear()
template<class Tparticle >
◆ clearNoFreeMem()
template<class Tparticle >
◆ clearNoFreeMemNoResizeNeighborAdress()
template<class Tparticle >
void H4::Neighbor< Tparticle >::clearNoFreeMemNoResizeNeighborAdress |
( |
| ) |
|
|
inline |
◆ printColumn()
template<class Tparticle >
void H4::Neighbor< Tparticle >::printColumn |
( |
std::ostream & |
_fout, |
|
|
const int |
_width = 20 |
|
) |
| |
|
inline |
print data of class members using column style
print data of class members in one line for column style. Notice no newline is printed at the end
- Parameters
-
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
◆ printColumnTitle()
template<class Tparticle >
void H4::Neighbor< Tparticle >::printColumnTitle |
( |
std::ostream & |
_fout, |
|
|
const int |
_width = 20 |
|
) |
| |
|
inline |
print titles of class members using column style
print titles of class members in one line for column style
- Parameters
-
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
◆ reserveMem()
template<class Tparticle >
void H4::Neighbor< Tparticle >::reserveMem |
( |
const int |
_nmax | ) |
|
|
inline |
reserve memory for neighbor lists
- Parameters
-
[in] | _nmax | maximum number of neighbors |
◆ resetNeighbor()
template<class Tparticle >
reset neighbor information
◆ initial_step_flag
template<class Tparticle >
◆ mass_min
template<class Tparticle >
◆ mass_min_index
template<class Tparticle >
◆ n_neighbor_group
template<class Tparticle >
◆ n_neighbor_single
template<class Tparticle >
◆ need_resolve_flag
template<class Tparticle >
◆ neighbor_address
template<class Tparticle >
◆ r_min_index
template<class Tparticle >
◆ r_min_mass
template<class Tparticle >
◆ r_min_sq
template<class Tparticle >
◆ r_neighbor_crit_sq
template<class Tparticle >
The documentation for this class was generated from the following file: