src/Boundary/SphericalBoundary.cc
//------------------------------------------------------------------------------
// Find the set of nodes in the given NodeList that violate this boundary
// condition.  In this case we list all internal nodes as being in violation,
// in order to ensure nodes stay rigorously on the x-axis.
//------------------------------------------------------------------------------
Find the set of nodes in the given NodeList that violate this boundary
condition.  In this case we list all internal nodes as being in violation,
in order to ensure nodes stay rigorously on the x-axis.
Find the set of nodes in the given NodeList that violate this boundary condition . In this case we list all internal nodes as being in violation in order to ensure nodes stay rigorously on the x - axis .
void
SphericalBoundary::
setViolationNodes(NodeList<Dim<3> >& nodeList) {
  BoundaryNodes& boundaryNodes = accessBoundaryNodes(nodeList);
  vector<int>& vNodes = boundaryNodes.violationNodes;
  vNodes = vector<int>();
  vNodes.reserve(nodeList.numInternalNodes());
  for (auto nodeID = 0u; nodeID != nodeList.numInternalNodes(); ++nodeID) 
    vNodes.push_back(nodeID);
  CHECK(vNodes.size() == nodeList.numInternalNodes());
  updateViolationNodes(nodeList);
}
void SphericalBoundary :: setViolationNodes ( NodeList < Dim < 3 > > & nodeList ) { BoundaryNodes & boundaryNodes = accessBoundaryNodes ( nodeList ) ; vector < int > & vNodes = boundaryNodes . violationNodes ; vNodes = vector < int > ( ) ; vNodes . reserve ( nodeList . numInternalNodes ( ) ) ; for ( auto nodeID = 0u ; nodeID != nodeList . numInternalNodes ( ) ; ++ nodeID ) vNodes . push_back ( nodeID ) ; CHECK ( vNodes . size ( ) == nodeList . numInternalNodes ( ) ) ; updateViolationNodes ( nodeList ) ; }
Find the set of nodes in the given NodeList that violate this boundary
condition.
Find the set of nodes in the given NodeList that violate this boundary condition .
// Get the BoundaryNodes.violationNodes for this NodeList. // Update the positions and H for the nodes in violation.