/**
* A generalization of the binary
- * <code>or</code> operator to a comparison
+ * <code>and</code> operator to a comparison
* relationship. The way this works is
* pretty much as when you would want to
* define a comparison relationship for
* then the returned value is
* <code>neither_element_dominates</code>.
*/
- Domination operator | (const Domination d1,
+ Domination operator & (const Domination d1,
const Domination d2);
}
namespace FiniteElementDomination
{
inline
- Domination operator | (const Domination d1,
+ Domination operator & (const Domination d1,
const Domination d2)
{
switch (d1)
FiniteElementDomination::Domination
mother_face_dominates = FiniteElementDomination::either_element_can_dominate;
for (unsigned int c=0; c<GeometryInfo<dim>::subfaces_per_face; ++c)
- mother_face_dominates = mother_face_dominates |
+ mother_face_dominates = mother_face_dominates &
(cell->get_fe().compare_for_domination
(cell->neighbor_child_on_subface (face, c)->get_fe()));
domination = FiniteElementDomination::either_element_can_dominate;
for (unsigned int sf=0; sf<GeometryInfo<dim>::subfaces_per_face; ++sf)
if (sf != dominating_subface_no)
- domination = domination |
+ domination = domination &
cell->neighbor_child_on_subface (face, dominating_subface_no)
->get_fe().compare_for_domination
(cell->neighbor_child_on_subface (face, sf)->get_fe());
// for this pair of base elements,
// check who dominates and combine
// with previous result
- domination = domination | (this->base_element(b)
+ domination = domination & (this->base_element(b)
.compare_for_domination (fe_sys_other->base_element(b)));
}