From 74d8c4435ec9e44343e20e68ddc1bfa7686e5c9f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 2 Nov 1999 16:37:17 +0000 Subject: [PATCH] Unify pass-by-value and pass-by-reference for restriction_is_additive flags. git-svn-id: https://svn.dealii.org/trunk@1819 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe.h | 5 +++-- deal.II/deal.II/source/fe/fe.cc | 2 +- deal.II/deal.II/source/fe/q1_mapping.cc | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe.h b/deal.II/deal.II/include/fe/fe.h index e609614da3..3540cb97ad 100644 --- a/deal.II/deal.II/include/fe/fe.h +++ b/deal.II/deal.II/include/fe/fe.h @@ -278,7 +278,8 @@ class FiniteElementBase : public Subscriptor, * component and second index in * component. */ - pair face_system_to_component_index (unsigned int index) const; + pair face_system_to_component_index (unsigned int index) const; + /** * The base element establishing a * component. @@ -915,7 +916,7 @@ class FiniteElement : public FiniteElementBase * Constructor */ FiniteElement (const FiniteElementData &fe_data, - const vector restriction_is_additive_flags); + const vector &restriction_is_additive_flags); /** * Destructor. Only declared to have a diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index 57838c5d31..ca62e92ce9 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -253,7 +253,7 @@ bool FiniteElementBase::operator == (const FiniteElementBase &f) const template FiniteElement::FiniteElement (const FiniteElementData &fe_data, - const vector restriction_is_additive_flags) : + const vector &restriction_is_additive_flags) : FiniteElementBase (fe_data, restriction_is_additive_flags) {}; diff --git a/deal.II/deal.II/source/fe/q1_mapping.cc b/deal.II/deal.II/source/fe/q1_mapping.cc index a496850ce8..a2fb965327 100644 --- a/deal.II/deal.II/source/fe/q1_mapping.cc +++ b/deal.II/deal.II/source/fe/q1_mapping.cc @@ -24,7 +24,7 @@ FEQ1Mapping<1>::FEQ1Mapping (const unsigned int dofs_per_vertex, const unsigned int dofs_per_quad, const unsigned int dofs_per_hex, const unsigned int n_components, - const vector restriction_is_additive_flags) : + const vector &restriction_is_additive_flags) : FiniteElement<1> (FiniteElementData<1> (dofs_per_vertex, dofs_per_line, GeometryInfo<1>::vertices_per_cell, @@ -147,7 +147,7 @@ FEQ1Mapping<2>::FEQ1Mapping (const unsigned int dofs_per_vertex, const unsigned int dofs_per_quad, const unsigned int dofs_per_hex, const unsigned int n_components, - const vector restriction_is_additive_flags) : + const vector &restriction_is_additive_flags) : FiniteElement<2> (FiniteElementData<2> (dofs_per_vertex, dofs_per_line, dofs_per_quad, @@ -321,7 +321,7 @@ FEQ1Mapping<3>::FEQ1Mapping (const unsigned int dofs_per_vertex, const unsigned int dofs_per_quad, const unsigned int dofs_per_hex, const unsigned int n_components, - const vector restriction_is_additive_flags) : + const vector &restriction_is_additive_flags) : FiniteElement<3> (FiniteElementData<3> (dofs_per_vertex, dofs_per_line, dofs_per_quad, -- 2.39.5