]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow using the copy constructor. Change clone() to use it. This avoids re-computing...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Mar 2007 20:58:51 +0000 (20:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Mar 2007 20:58:51 +0000 (20:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@14536 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 075439ce2461d0b09773c37e9fcb8147a555ba31..6b088e64db0be362569b73116f85f20d5a923963 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -462,7 +462,7 @@ class FE_Q : public FE_Poly<TensorProductPolynomials<dim>,dim>
                                      * constructors of @p FESystem.
                                      */
     virtual FiniteElement<dim> * clone() const;
-
+    
   private:
     
                                     /**
index 7de581d3167ec5c1823d1b019fe64455564d5d24..e2e8af836b8c7215df515998b887235ff05a0a05 100644 (file)
@@ -239,7 +239,7 @@ template <int dim>
 FiniteElement<dim> *
 FE_Q<dim>::clone() const
 {
-  return new FE_Q<dim>(this->degree);
+  return new FE_Q<dim>(*this);
 }
 
 

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.