From: Wolfgang Bangerth Date: Sat, 5 Sep 2015 00:05:32 +0000 (-0500) Subject: Remove MappingQ copy constructor. X-Git-Tag: v8.4.0-rc2~474^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9cba2367a0412a056c822c6bee347fe3aa759b;p=dealii.git Remove MappingQ copy constructor. It is apparently not needed. --- 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); }