14 #include "libmesh/point.h" 38 "Point coordinates for indexing must be normalized below 1. " 45 return Point(rounded_p[0], rounded_p[1], rounded_p[2]);
63 std::unordered_map<Point, Number, hash_point>
base_map;
72 return const_cast<Number &
>(it->second);
89 std::unordered_map<Point, Number, hash_point>::const_iterator
find(
const Point & pt)
const 104 std::unordered_map<Point, Number, hash_point>::const_iterator
out;
121 std::unordered_map<Point, Number, hash_point>::const_iterator & out)
const 125 const auto eps = 1e-13;
135 std::unordered_map<Point, Number, hash_point>::const_iterator
end()
const PointIndexedMap(const Point &mesh_max_coords)
int eps(unsigned int i, unsigned int j)
2D version
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
std::unordered_map< Point, Number, hash_point > base_map
The container indexed by points.
std::unordered_map< Point, Number, hash_point >::const_iterator end() const
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.
Point normalization
Normalization factors used to scale points before insertions/comparisons.
std::unordered_map< Point, Number, hash_point >::const_iterator find(const Point &pt) const
An unordered map indexed by Point, eg 3 floating point numbers Because floating point rounding errors...
Point getRoundedPoint(const Point &p) const
Normalize, expand then round a point to create local bins.
IntRange< T > make_range(T beg, T end)
bool attempt_find(const Point &p, Real dx, Real dy, Real dz, std::unordered_map< Point, Number, hash_point >::const_iterator &out) const
Number & operator[](Point p)
unsigned int hasKey(Point p)
std::size_t operator()(const Point &p) const