From 0b9cba2367a0412a056c822c6bee347fe3aa759b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 4 Sep 2015 19:05:32 -0500 Subject: [PATCH] Remove MappingQ copy constructor. It is apparently not needed. --- include/deal.II/fe/mapping_q.h | 5 ----- source/fe/mapping_q.cc | 38 ++++++++++------------------------ 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/include/deal.II/fe/mapping_q.h b/include/deal.II/fe/mapping_q.h index 8697acdefd..7f11705c25 100644 --- a/include/deal.II/fe/mapping_q.h +++ b/include/deal.II/fe/mapping_q.h @@ -72,11 +72,6 @@ public: MappingQ (const unsigned int polynomial_degree, const bool use_mapping_q_on_all_cells = false); - /** - * Copy constructor. - */ - MappingQ (const MappingQ &mapping); - /** * Transforms the point @p p on the unit cell to the point @p p_real on the * real cell @p cell and returns @p p_real. diff --git a/source/fe/mapping_q.cc b/source/fe/mapping_q.cc index 28c8dedf2f..6635f30f90 100644 --- a/source/fe/mapping_q.cc +++ b/source/fe/mapping_q.cc @@ -82,22 +82,6 @@ MappingQ::MappingQ (const unsigned int p, } -template -MappingQ::MappingQ (const MappingQ &mapping) - : - MappingQ1(), - degree(mapping.degree), - n_inner(mapping.n_inner), - n_outer(mapping.n_outer), - use_mapping_q_on_all_cells (mapping.use_mapping_q_on_all_cells), - feq(degree), - line_support_points(degree+1) -{ - laplace_on_quad_vector=mapping.laplace_on_quad_vector; - laplace_on_hex_vector=mapping.laplace_on_hex_vector; -} - - template typename MappingQ::InternalData * @@ -874,8 +858,8 @@ transform (const VectorSlice > > input, { AssertDimension (input.size(), output.size()); Assert ((dynamic_cast::InternalData *> (&mapping_data) - != 0), - ExcInternalError()); + != 0), + ExcInternalError()); // If it is a genuine MappingQ::InternalData, we have to test further // whether we should in fact work on the Q1 portion of it @@ -899,8 +883,8 @@ transform (const VectorSlice { AssertDimension (input.size(), output.size()); Assert ((dynamic_cast::InternalData *> (&mapping_data) - != 0), - ExcInternalError()); + != 0), + ExcInternalError()); // If it is a genuine MappingQ::InternalData, we have to test further // whether we should in fact work on the Q1 portion of it @@ -922,8 +906,8 @@ transform (const VectorSlice > > input, { AssertDimension (input.size(), output.size()); Assert ((dynamic_cast::InternalData *> (&mapping_data) - != 0), - ExcInternalError()); + != 0), + ExcInternalError()); // If it is a genuine MappingQ::InternalData, we have to test further // whether we should in fact work on the Q1 portion of it @@ -947,8 +931,8 @@ transform (const VectorSlice { AssertDimension (input.size(), output.size()); Assert ((dynamic_cast::InternalData *> (&mapping_data) - != 0), - ExcInternalError()); + != 0), + ExcInternalError()); // If it is a genuine MappingQ::InternalData, we have to test further // whether we should in fact work on the Q1 portion of it @@ -970,8 +954,8 @@ transform (const VectorSlice > > input, { AssertDimension (input.size(), output.size()); Assert ((dynamic_cast::InternalData *> (&mapping_data) - != 0), - ExcInternalError()); + != 0), + ExcInternalError()); // If it is a genuine MappingQ::InternalData, we have to test further // whether we should in fact work on the Q1 portion of it @@ -1112,7 +1096,7 @@ template Mapping * MappingQ::clone () const { - return new MappingQ(*this); + return new MappingQ(degree); } -- 2.39.5