22 template <
typename VECTOR_T>
24 const VECTOR_T &coordinates,
31 template <
typename VECTOR_T>
32 void setCoords(
const VECTOR_T &coordinates);
88template <
typename VECTOR_T>
90 const VECTOR_T &coordinates,
92 : _dim(coordinates.size()),
101template <
typename VECTOR_T>
103 const VECTOR_T &coordinates)
118 Eigen::VectorXd v(
_dim);
141 return !(*
this == rhs);
#define PRECICE_ASSERT(...)
bool operator<(const Vertex &rhs) const
Implements partial ordering by ID.
double coord(int index) const
Returns a coordinate of a vertex.
short _dim
Dimension of the coordinates. 3D or 2D.
VertexID getID() const
Returns the unique (among vertices of one mesh on one processor) ID of the vertex.
bool _tagged
true if this vertex is tagged for partition
void setCoords(const VECTOR_T &coordinates)
Sets the coordinates of the vertex.
const RawCoords & rawCoords() const
Direct access to the coordinates.
std::array< double, 3 > _coords
Coordinates of the vertex.
bool _owner
true if this processors is the owner of the vertex (for parallel simulations)
void setGlobalIndex(int globalIndex)
int _globalIndex
global (unique) index for parallel simulations
void setOwner(bool owner)
int getDimensions() const
Returns spatial dimensionality of vertex.
Vertex(const VECTOR_T &coordinates, VertexID id)
Constructor for vertex.
Eigen::VectorXd getCoords() const
Returns the coordinates of the vertex.
VertexID _id
Unique (among vertices in one mesh) ID of the vertex.
bool operator==(const Vertex &rhs) const
int getGlobalIndex() const
Globally unique index.
bool operator!=(const Vertex &rhs) const
constexpr bool equals(const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=NUMERICAL_ZERO_DIFFERENCE)
Compares two Eigen::MatrixBase for equality up to tolerance.
std::ostream & operator<<(std::ostream &os, const BoundingBox &bb)
Main namespace of the precice library.