From caa45cc43108cebdf88050864c4f3887e3e9bdff Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Jan 2017 13:18:32 -0700 Subject: [PATCH] Fix face domination between FE_Q and FE_DGQ. Right now, one got an answer if one asked the FE_DGQ whether or not it dominates the FE_Q, but not the other way around. Make this symmetric. While there, also include FE_DGP in the test. --- source/fe/fe_q_base.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/fe/fe_q_base.cc b/source/fe/fe_q_base.cc index 4b3f1ccf9a..cb0b1d848b 100644 --- a/source/fe/fe_q_base.cc +++ b/source/fe/fe_q_base.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2000 - 2015 by the deal.II authors +// Copyright (C) 2000 - 2017 by the deal.II authors // // This file is part of the deal.II library. // @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include #include #include @@ -876,6 +878,14 @@ compare_for_face_domination (const FiniteElement &fe_other) const return FiniteElementDomination::no_requirements; } } + else if ((dynamic_cast*>(&fe_other) != 0) + || + (dynamic_cast*>(&fe_other) != 0)) + { + // there are no requirements between continuous and + // discontinuous elements + return FiniteElementDomination::no_requirements; + } Assert (false, ExcNotImplemented()); return FiniteElementDomination::neither_element_dominates; -- 2.39.5