* components as all other elements
* already in the collection.
*/
- unsigned int
- push_back (const FiniteElement<dim> &new_fe);
+ void push_back (const FiniteElement<dim> &new_fe);
/**
* Get a reference to the given element
* first, followed by the mapping
* object for active_fe_index 1.
*/
- unsigned int push_back (const Mapping<dim> &new_mapping);
+ void push_back (const Mapping<dim> &new_mapping);
private:
/**
* this object upon destruction of the
* entire collection.
*/
- unsigned int push_back (const Quadrature<dim> &new_quadrature);
+ void push_back (const Quadrature<dim> &new_quadrature);
/**
* Determine an estimate for the
namespace hp
{
template <int dim>
- unsigned int FECollection<dim>::push_back (const FiniteElement<dim> &new_fe)
+ void FECollection<dim>::push_back (const FiniteElement<dim> &new_fe)
{
// check that the new element has the right
// number of components. only check with
finite_elements
.push_back (boost::shared_ptr<const FiniteElement<dim> >(new_fe.clone()));
-
- return finite_elements.size ();
}
template <int dim>
- unsigned int
+ void
MappingCollection<dim>::push_back (const Mapping<dim> &new_mapping)
{
// A MappingCollection, which was
mappings
.push_back (boost::shared_ptr<const Mapping<dim> >(new_mapping.clone()));
-
- return mappings.size ();
}
template <int dim>
- unsigned int
- QCollection<dim>::
- push_back (const Quadrature<dim> &new_quadrature)
+ void
+ QCollection<dim>::push_back (const Quadrature<dim> &new_quadrature)
{
// A QCollection, which was initialized
// as single QCollection cannot
quadratures
.push_back (boost::shared_ptr<const Quadrature<dim> >(new Quadrature<dim>(new_quadrature)));
- return quadratures.size ();
}
dof_handler (triangulation),
dg ()
{
- // Change here for hp
- // methods of
- // different maximum degrees.
- const unsigned int hp_degree = 5;
- unsigned int elm_no;
- for (unsigned int i = 0; i < hp_degree; ++i)
+ // Change here for hp
+ // methods of
+ // different maximum degrees.
+ const unsigned int hp_degree = 5;
+ for (unsigned int i = 0; i < hp_degree; ++i)
{
- elm_no = fe_collection.push_back (FE_DGQ<dim> (i));
- quadratures.push_back (QGauss<dim> (i+2));
- face_quadratures.push_back (QGauss<dim-1> (i+2));
+ fe_collection.push_back (FE_DGQ<dim> (i));
+ quadratures.push_back (QGauss<dim> (i+2));
+ face_quadratures.push_back (QGauss<dim-1> (i+2));
}
- static const MappingQ1<dim> mapping;
- mapping_collection.push_back (mapping);
+ static const MappingQ1<dim> mapping;
+ mapping_collection.push_back (mapping);
}