From 0accfb50b5bddbac446be7e752fc90a1020c0981 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 21 Oct 2017 01:40:37 +0200 Subject: [PATCH] Mark more variables const --- source/base/data_out_base.cc | 2 +- source/fe/fe_dgq.cc | 2 +- source/fe/fe_q_base.cc | 4 ++-- source/multigrid/mg_transfer_internal.cc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index e2005c9bf2..50ebc4c5db 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -7549,7 +7549,7 @@ merge (const DataOutReader &source) typedef typename dealii::DataOutBase::Patch Patch; - const std::vector source_patches = source.get_patches (); + const std::vector &source_patches = source.get_patches (); Assert (patches.size () != 0, DataOutBase::ExcNoPatches ()); Assert (source_patches.size () != 0, DataOutBase::ExcNoPatches ()); // check equality of component diff --git a/source/fe/fe_dgq.cc b/source/fe/fe_dgq.cc index 80c9c8ea99..31189df188 100644 --- a/source/fe/fe_dgq.cc +++ b/source/fe/fe_dgq.cc @@ -698,7 +698,7 @@ FE_DGQArbitraryNodes::FE_DGQArbitraryNodes (const Quadrature<1> &p { Assert (points.size() > 0, (typename FiniteElement::ExcFEHasNoSupportPoints ())); - Quadrature support_quadrature(points); + const Quadrature support_quadrature(points); this->unit_support_points = support_quadrature.get_points(); } diff --git a/source/fe/fe_q_base.cc b/source/fe/fe_q_base.cc index ba09eb8798..4040f6b8d0 100644 --- a/source/fe/fe_q_base.cc +++ b/source/fe/fe_q_base.cc @@ -909,7 +909,7 @@ void FE_Q_Base::initialize_unit_support_points this->poly_space.get_numbering_inverse(); Quadrature<1> support_1d(points); - Quadrature support_quadrature(support_1d); + const Quadrature support_quadrature(support_1d); this->unit_support_points.resize(support_quadrature.size()); for (unsigned int k=0; k::initialize_unit_face_support_points std::vector face_index_map = internal::FE_Q_Base::face_lexicographic_to_hierarchic_numbering(q_degree); Quadrature<1> support_1d(points); - Quadrature support_quadrature(support_1d); + const Quadrature support_quadrature(support_1d); this->unit_face_support_points.resize(support_quadrature.size()); for (unsigned int k=0; k neighbors = tria->level_ghost_owners(); + const std::set &neighbors = tria->level_ghost_owners(); std::map > send_data; // * find owners of the level dofs and insert into send_data accordingly @@ -306,7 +306,7 @@ namespace internal { // 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 part + const std::shared_ptr &part = ghosted_level_vector.get_partitioner(); ghosted_dofs.add_indices(part->ghost_indices()); for (unsigned int i=0; i