43 namespace NekMeshUtils
59 return e1->GetId() == e2->GetId();
70 if (p1->vertId.size() != p2->vertId.size())
75 vector<int> ids1 = p1->vertId;
76 vector<int> ids2 = p2->vertId;
77 sort(ids1.begin(), ids1.end());
78 sort(ids2.begin(), ids2.end());
80 for (
int i = 0; i < ids1.size(); ++i)
82 if (ids1[i] != ids2[i])
95 int i, n = c1->type.size();
97 if (n != c2->type.size())
102 for (i = 0; i < n; ++i)
104 if (c1->type[i] != c2->type[i])
109 if (c1->field[i] != c2->field[i] || c1->value[i] != c2->value[i])
131 if (p1->m_id != p2->m_id)
154 os << n->m_x <<
" " << n->m_y <<
" " << n->m_z;
164 return ( ((*(p1->m_n1) == *(p2->m_n1)) && (*(p1->m_n2) == *(p2->m_n2)))
165 || ((*(p1->m_n2) == *(p2->m_n1)) && (*(p1->m_n1) == *(p2->m_n2))));
173 return p1->m_id < p2->m_id;
183 for (it1 = p1->m_vertexList.begin(); it1 != p1->m_vertexList.end(); ++it1)
185 if (
find(p2->m_vertexList.begin(), p2->m_vertexList.end(), *it1)
186 == p2->m_vertexList.end())
200 return p1->m_id < p2->m_id;
Basic information about an element.
boost::shared_ptr< HOSurf > HOSurfSharedPtr
bool operator<(FaceSharedPtr const &p1, FaceSharedPtr const &p2)
Defines ordering between two faces (depending on ID of faces).
unsigned int m_order
Order of the element.
bool operator!=(NodeSharedPtr const &p1, NodeSharedPtr const &p2)
Compares two nodes for inequality based on IDs.
boost::shared_ptr< Node > NodeSharedPtr
boost::shared_ptr< Condition > ConditionSharedPtr
std::ostream & operator<<(std::ostream &os, const NodeSharedPtr &n)
Print description of node to given ostream.
boost::shared_ptr< Edge > EdgeSharedPtr
Shared pointer to an edge.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
InputIterator find(InputIterator first, InputIterator last, InputIterator startingpoint, const EqualityComparable &value)
boost::shared_ptr< Element > ElementSharedPtr
boost::shared_ptr< Face > FaceSharedPtr
bool operator==(const VertexSharedPtr &v1, const VertexSharedPtr &v2)
Define comparison operator for the vertex struct.
LibUtilities::ShapeType m_e
Element type (e.g. triangle, quad, etc).