src/Boundary/CylindricalBoundary.cc
//------------------------------------------------------------------------------
// Enforce consistency with the boundary condition on fields of different
// DataTypes.
//------------------------------------------------------------------------------
// Specialization for Vector fields, forcing Vector's to lie in the xy plane.
Enforce consistency with the boundary condition on fields of different
DataTypes.

Specialization for Vector fields, forcing Vector's to lie in the xy plane.
Enforce consistency with the boundary condition on fields of different DataTypes . Specialization for Vector fields forcing Vector ' s to lie in the xy plane .
void
CylindricalBoundary::
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).z(0.0);
  }
}
void CylindricalBoundary :: 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 ) . z ( 0.0 ) ; } }
Enforce consistency with the boundary condition on fields of different
DataTypes.
Enforce consistency with the boundary condition on fields of different DataTypes .