typedef typename dealii::DataOutBase::Patch<dim,spacedim> Patch;
- const std::vector<Patch> source_patches = source.get_patches ();
+ const std::vector<Patch> &source_patches = source.get_patches ();
Assert (patches.size () != 0, DataOutBase::ExcNoPatches ());
Assert (source_patches.size () != 0, DataOutBase::ExcNoPatches ());
// check equality of component
{
Assert (points.size() > 0,
(typename FiniteElement<dim, spacedim>::ExcFEHasNoSupportPoints ()));
- Quadrature<dim> support_quadrature(points);
+ const Quadrature<dim> support_quadrature(points);
this->unit_support_points = support_quadrature.get_points();
}
this->poly_space.get_numbering_inverse();
Quadrature<1> support_1d(points);
- Quadrature<dim> support_quadrature(support_1d);
+ const Quadrature<dim> support_quadrature(support_1d);
this->unit_support_points.resize(support_quadrature.size());
for (unsigned int k=0; k<support_quadrature.size(); k++)
std::vector<unsigned int> face_index_map =
internal::FE_Q_Base::face_lexicographic_to_hierarchic_numbering<dim>(q_degree);
Quadrature<1> support_1d(points);
- Quadrature<codim> support_quadrature(support_1d);
+ const Quadrature<codim> support_quadrature(support_1d);
this->unit_face_support_points.resize(support_quadrature.size());
for (unsigned int k=0; k<support_quadrature.size(); k++)
// The list of neighbors is symmetric (our neighbors have us as a
// neighbor), so we can use it to send and to know how many messages
// we will get.
- std::set<types::subdomain_id> neighbors = tria->level_ghost_owners();
+ const std::set<types::subdomain_id> &neighbors = tria->level_ghost_owners();
std::map<int, std::vector<DoFPair> > send_data;
// * find owners of the level dofs and insert into send_data accordingly
{
// shift the local number of the copy indices according to the new
// partitioner that we are going to use for the vector
- const std::shared_ptr<const Utilities::MPI::Partitioner> part
+ const std::shared_ptr<const Utilities::MPI::Partitioner> &part
= ghosted_level_vector.get_partitioner();
ghosted_dofs.add_indices(part->ghost_indices());
for (unsigned int i=0; i<copy_indices_global_mine.size(); ++i)