src/Boundary/SphericalBoundary.cc
// Specialization for Vector fields, force radial along the x-axis.
Specialization for Vector fields, force radial along the x-axis.
Specialization for Vector fields force radial along the x - axis .
void
SphericalBoundary::
enforceBoundary(Field<Dim<3>, Dim<3>::Vector>& field) const {
  const NodeList<Dimension>& nodeList = field.nodeList();
  for (vector<int>::const_iterator itr = violationBegin(nodeList);
       itr != violationEnd(nodeList);
       ++itr) {
    CHECK(*itr >= 0 && *itr < (int)nodeList.numInternalNodes());
    field(*itr).y(0.0);
    field(*itr).z(0.0);
  }
}
void SphericalBoundary :: enforceBoundary ( Field < Dim < 3 > , Dim < 3 > :: Vector > & field ) const { const NodeList < Dimension > & nodeList = field . nodeList ( ) ; for ( vector < int > :: const_iterator itr = violationBegin ( nodeList ) ; itr != violationEnd ( nodeList ) ; ++ itr ) { CHECK ( * itr >= 0 && * itr < ( int ) nodeList . numInternalNodes ( ) ) ; field ( * itr ) . y ( 0.0 ) ; field ( * itr ) . z ( 0.0 ) ; } }
Specialization for Vector fields, force radial along the x-axis.
Specialization for Vector fields force radial along the x - axis .