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 651 of file MooseMesh.C.

Constructor & Destructor Documentation

◆ BndNodeCompare()

BndNodeCompare::BndNodeCompare ( )
inline

Definition at line 654 of file MooseMesh.C.

654 {}

Member Function Documentation

◆ operator()()

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

Definition at line 656 of file MooseMesh.C.

657  {
658  if (lhs->_bnd_id < rhs->_bnd_id)
659  return true;
660 
661  if (lhs->_bnd_id > rhs->_bnd_id)
662  return false;
663 
664  if (lhs->_node->id() < rhs->_node->id())
665  return true;
666 
667  if (lhs->_node->id() > rhs->_node->id())
668  return false;
669 
670  return false;
671  }
BoundaryID _bnd_id
boundary id for the node
Definition: BndNode.h:23
Node * _node
pointer to the node
Definition: BndNode.h:21

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