FiniteElementComp Class Reference

Public Member Functions

bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x/y coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x coordinate of el1_pt less than that of el2_pt? More...
 
bool operator() (FiniteElement *const &el1_pt, FiniteElement *const &el2_pt) const
 Comparison. Is x/y coordinate of el1_pt less than that of el2_pt? More...
 

Detailed Description

////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Function-type-object to compare finite elements based on their x coordinate

Function-type-object to compare finite elements based on their x coordinate

Function-type-object to compare finite elements based on the x and y coordinates of their first node

/////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// Function-type-object to compare finite elements based on their x coordinate

Member Function Documentation

◆ operator()() [1/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

1977  {
1978  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
1979  }
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
double & x(const unsigned &i)
Return the i-th nodal coordinate.
Definition: nodes.h:1060

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [2/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

72  {
73  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
74  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [3/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

55  {
56  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
57  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [4/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

56  {
57  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
58  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [5/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x/y coordinate of el1_pt less than that of el2_pt?

56  {
57 
58  if (el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0))
59  {
60  return true;
61  }
62  else if (el1_pt->node_pt(0)->x(0) == el2_pt->node_pt(0)->x(0))
63  {
64  if (el1_pt->node_pt(0)->x(1) < el2_pt->node_pt(0)->x(1))
65  {
66  return true;
67  }
68  else
69  {
70  return false;
71  }
72  }
73  else
74  {
75  return false;
76  }
77  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [6/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

55  {
56  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
57  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [7/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x coordinate of el1_pt less than that of el2_pt?

202  {
203  return el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0);
204  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().

◆ operator()() [8/8]

bool FiniteElementComp::operator() ( FiniteElement *const &  el1_pt,
FiniteElement *const &  el2_pt 
) const
inline

Comparison. Is x/y coordinate of el1_pt less than that of el2_pt?

58  {
59 
60  if (el1_pt->node_pt(0)->x(0) < el2_pt->node_pt(0)->x(0))
61  {
62  return true;
63  }
64  else if (el1_pt->node_pt(0)->x(0) == el2_pt->node_pt(0)->x(0))
65  {
66  if (el1_pt->node_pt(0)->x(1) < el2_pt->node_pt(0)->x(1))
67  {
68  return true;
69  }
70  else
71  {
72  return false;
73  }
74  }
75  else
76  {
77  return false;
78  }
79  }

References oomph::FiniteElement::node_pt(), and oomph::Node::x().


The documentation for this class was generated from the following files: