https://mooseframework.inl.gov
Public Member Functions | List of all members
BndNodeCompare Class Reference

Helper class for sorting Boundary Nodes so that we always get the same order of application for boundary conditions. More...

Public Member Functions

 BndNodeCompare ()
 
bool operator() (const BndNode *const &lhs, const BndNode *const &rhs)
 

Detailed Description

Helper class for sorting Boundary Nodes so that we always get the same order of application for boundary conditions.

Definition at line 1016 of file MooseMesh.C.

Constructor & Destructor Documentation

◆ BndNodeCompare()

BndNodeCompare::BndNodeCompare ( )
inline

Definition at line 1019 of file MooseMesh.C.

1019 {}

Member Function Documentation

◆ operator()()

bool BndNodeCompare::operator() ( const BndNode *const &  lhs,
const BndNode *const &  rhs 
)
inline

Definition at line 1021 of file MooseMesh.C.

1022  {
1023  if (lhs->_bnd_id < rhs->_bnd_id)
1024  return true;
1025 
1026  if (lhs->_bnd_id > rhs->_bnd_id)
1027  return false;
1028 
1029  if (lhs->_node->id() < rhs->_node->id())
1030  return true;
1031 
1032  if (lhs->_node->id() > rhs->_node->id())
1033  return false;
1034 
1035  return false;
1036  }
BoundaryID _bnd_id
boundary id for the node
Definition: BndNode.h:26
dof_id_type id() const
libMesh::Node * _node
pointer to the node
Definition: BndNode.h:24

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