9 #ifndef GEOM_NEIGHBOR_H
10 #define GEOM_NEIGHBOR_H
12 #include "util/point.h"
42 const std::vector<util::Point3> *nodes);
51 const std::vector<size_t> &
getNeighbors(
const size_t &i);
86 size_t getNeighbor(
const size_t &i,
const size_t &j)
const;
97 std::string
printStr(
int nt = 0,
int lvl = 0)
const;
106 void print(
int nt = 0,
int lvl = 0)
const { std::cout <<
printStr(nt, lvl); };
A class to store neighbor list and provide access to the list.
Definition: neighbor.h:32
Neighbor(const double &horizon, inp::NeighborDeck *deck, const std::vector< util::Point3 > *nodes)
Constructor.
Definition: neighbor.cpp:24
inp::NeighborDeck * d_neighborDeck_p
Interior flags deck.
Definition: neighbor.h:106
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: neighbor.cpp:118
std::vector< std::vector< size_t > > * getNeighborsListP()
Get the pointer to full neighbor list.
Definition: neighbor.cpp:98
std::vector< std::vector< size_t > > d_neighbors
Vector of list of neighbors for each node.
Definition: neighbor.h:113
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: neighbor.h:106
const std::vector< size_t > & getNeighbors(const size_t &i)
Get neighbor list of node i (element i in case of weak_finite_element)
Definition: neighbor.cpp:94
size_t getNeighbor(const size_t &i, const size_t &j) const
Get global id of neighboring node given its local id in the neighbor list.
Definition: neighbor.cpp:114
std::vector< std::vector< size_t > > & getNeighborsList()
Get the pointer to full neighbor list.
Definition: neighbor.cpp:106
Collection of methods and data related to geometry.
Definition: DataManager.h:23
Collection of methods and database related to input.
Definition: main.cpp:21
Structure to read and store neighbor list related input data.
Definition: neighborDeck.h:22