// $Id$
// Version: $Name$
//
-// Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 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
FiniteElement<dim> *
FE_DGP<dim>::clone() const
{
- return new FE_DGP<dim>(this->degree);
+ return new FE_DGP<dim>(*this);
}
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 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
FiniteElement<dim> *
FE_DGPMonomial<dim>::clone() const
{
- return new FE_DGPMonomial<dim>(this->degree);
+ return new FE_DGPMonomial<dim>(*this);
}
// $Id$
// Version: $Name$
//
-// Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 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
FiniteElement<dim> *
FE_DGPNonparametric<dim>::clone() const
{
- return new FE_DGPNonparametric<dim>(degree);
+ return new FE_DGPNonparametric<dim>(*this);
}
// $Id$
// Version: $Name$
//
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 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
this->unit_support_points = support_quadrature.get_points();
}
+
+
template <int dim>
std::string
FE_DGQ<dim>::get_name () const
FiniteElement<dim> *
FE_DGQ<dim>::clone() const
{
- return new FE_DGQ<dim>(this->degree);
+ return new FE_DGQ<dim>(*this);
}
FiniteElement<dim> *
FE_Nedelec<dim>::clone() const
{
- return new FE_Nedelec<dim>(degree);
+ return new FE_Nedelec<dim>(*this);
}
FiniteElement<dim> *
FE_Q_Hierarchical<dim>::clone() const
{
- return new FE_Q_Hierarchical<dim>(this->degree);
+ return new FE_Q_Hierarchical<dim>(*this);
}
FiniteElement<dim> *
FE_RaviartThomas<dim>::clone() const
{
- return new FE_RaviartThomas<dim>(rt_order);
+ return new FE_RaviartThomas<dim>(*this);
}
FiniteElement<dim> *
FE_RaviartThomasNodal<dim>::clone() const
{
- return new FE_RaviartThomasNodal<dim>(this->degree-1);
+ return new FE_RaviartThomasNodal<dim>(*this);
}