From: Guido Kanschat Date: Mon, 7 Dec 2009 21:18:36 +0000 (+0000) Subject: add missing clone to FE_FaceQ X-Git-Tag: v8.0.0~6759 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bbc2831c92b39aeae4bf4e15c05606b2f757c91;p=dealii.git add missing clone to FE_FaceQ git-svn-id: https://svn.dealii.org/trunk@20208 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe_face.h b/deal.II/deal.II/include/fe/fe_face.h index 97cab1f999..5ccb9035b5 100644 --- a/deal.II/deal.II/include/fe/fe_face.h +++ b/deal.II/deal.II/include/fe/fe_face.h @@ -26,7 +26,7 @@ DEAL_II_NAMESPACE_OPEN * A finite element, which is a tensor product polynomial on each face * and undefined in the interior of the cells. * - * This finite element is the trace space of FE_RavirtThomas on the + * This finite element is the trace space of FE_RaviartThomas on the * faces and serves in hybridized methods. * * @author Guido Kanschat, 2009 @@ -46,6 +46,8 @@ class FE_FaceQ : FE_PolyFace, dim, spacedim> */ FE_FaceQ(unsigned int p); + virtual FiniteElement* clone() const; + /** * Return a string that uniquely * identifies a finite diff --git a/deal.II/deal.II/source/fe/fe_face.cc b/deal.II/deal.II/source/fe/fe_face.cc index 43d966b5a9..2d293c27ed 100644 --- a/deal.II/deal.II/source/fe/fe_face.cc +++ b/deal.II/deal.II/source/fe/fe_face.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors +// Copyright (C) 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -27,6 +27,14 @@ FE_FaceQ::FE_FaceQ (const unsigned int degree) {} +template +FiniteElement* +FE_FaceQ::clone() const +{ + return new FE_FaceQ(this->degree); +} + + template std::string FE_FaceQ::get_name () const @@ -44,6 +52,8 @@ FE_FaceQ::get_name () const return namebuf.str(); } + + template bool FE_FaceQ::has_support_on_face (