From: Guido Kanschat Date: Thu, 20 Oct 2005 21:46:04 +0000 (+0000) Subject: add default implementation of has_support_on_face X-Git-Tag: v8.0.0~12965 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632e8917ccc76662d3f5ec21278cb3e94ef5f5eb;p=dealii.git add default implementation of has_support_on_face git-svn-id: https://svn.dealii.org/trunk@11638 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe.h b/deal.II/deal.II/include/fe/fe.h index 440a9ab2ab..1d33fe5d29 100644 --- a/deal.II/deal.II/include/fe/fe.h +++ b/deal.II/deal.II/include/fe/fe.h @@ -561,16 +561,24 @@ class FiniteElement : public Subscriptor, const Point &p, const unsigned int component) const; /** - * Check for non-zero values on a face. + * Check for non-zero values on a + * face in order to optimize out + * matrix elements. * * This function returns * @p true, if the shape * function @p shape_index has * non-zero values on the face * @p face_index. + * + * A default implementation is + * provided in this basis class + * which always returns @p + * true. This is the safe way to + * go. */ virtual bool has_support_on_face (const unsigned int shape_index, - const unsigned int face_index) const = 0; + const unsigned int face_index) const; //@} /** diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index 30bcebe559..5572c0fa89 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -558,6 +558,15 @@ FiniteElement::unit_face_support_point (const unsigned index) const } +template +bool +FiniteElement::has_support_on_face ( + const unsigned int, + const unsigned int) const +{ + return true; +} + template void