www.mooseframework.org
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 626 of file MooseMesh.C.

Constructor & Destructor Documentation

◆ BndNodeCompare()

BndNodeCompare::BndNodeCompare ( )
inline

Definition at line 629 of file MooseMesh.C.

629 {}

Member Function Documentation

◆ operator()()

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

Definition at line 631 of file MooseMesh.C.

632  {
633  if (lhs->_bnd_id < rhs->_bnd_id)
634  return true;
635 
636  if (lhs->_bnd_id > rhs->_bnd_id)
637  return false;
638 
639  if (lhs->_node->id() < rhs->_node->id())
640  return true;
641 
642  if (lhs->_node->id() > rhs->_node->id())
643  return false;
644 
645  return false;
646  }

The documentation for this class was generated from the following file:
BndNode::_node
Node * _node
pointer to the node
Definition: BndNode.h:24
BndNode::_bnd_id
BoundaryID _bnd_id
boundary id for the node
Definition: BndNode.h:26