]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add missing clone to FE_FaceQ
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 7 Dec 2009 21:18:36 +0000 (21:18 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 7 Dec 2009 21:18:36 +0000 (21:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@20208 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_face.h
deal.II/deal.II/source/fe/fe_face.cc

index 97cab1f9996d89340f2b7dbf483b35e30e27f8d1..5ccb9035b58182d9011b211f3b88cb47e06ac8c2 100644 (file)
@@ -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<TensorProductPolynomials<dim-1>, dim, spacedim>
                                      */
     FE_FaceQ(unsigned int p);
     
+    virtual FiniteElement<dim,spacedim>* clone() const;
+
                                     /**
                                      * Return a string that uniquely
                                      * identifies a finite
index 43d966b5a9e2be3d53c2fc0857b1851a9fc33d01..2d293c27edf31aa37b8c83363cc8d8a83859f014 100644 (file)
@@ -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<dim,spacedim>::FE_FaceQ (const unsigned int degree)
 {}
 
 
+template <int dim, int spacedim>
+FiniteElement<dim,spacedim>*
+FE_FaceQ<dim,spacedim>::clone() const
+{
+  return new FE_FaceQ<dim,spacedim>(this->degree);
+}
+
+
 template <int dim, int spacedim>
 std::string
 FE_FaceQ<dim,spacedim>::get_name () const
@@ -44,6 +52,8 @@ FE_FaceQ<dim,spacedim>::get_name () const
   return namebuf.str();
 }
 
+
+
 template <int dim, int spacedim>
 bool
 FE_FaceQ<dim,spacedim>::has_support_on_face (

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.